I have some hidden input fields like this ...
<input type="hidden" class="added_ids[]" name="added_ids[]" value="5190">
<input type="hidden" class="added_ids[]" name="added_ids[]" value="5340">
<input type="hidden" class="added_ids[]" name="added_ids[]" value="2488">
....and so on.
I need to get the values of each of the input fields so that I can pass it as a parameter to my php page.
url: "index.php/autocomplete/test_search?added_ids[]=" + //array holding ids
so I need to know how I do it in jQuery ..
var values = $(':hidden').serialize();jsfiddle.net/hd58F Gives you a parameters string that can be passed to server