Multiselect Send Via Ajax
Hi Guys,
I have a multiselect and another input (text) field which I want to sent by AJAX to a PHP script. For the life of me I cannot work out how to do it on both the JS and PHP side of things.
I have tried serialize and serializeArray but they do not seem to work, please see examples of my code below:
- var productName = $("#ProductName").val();
- var categories = $('#CategoryUIDs').serializeArray();
- $.post("./quickFunctions/getSeoUrl.phtml", { categories: categories, productName: productName }, function(data) {
- //$("#SeoUrl").val( data );
- alert(data);
- });
Any help would be appreciated, thanks.