I have multiple checkboxes with name=ap[] and want to use jquery to convert the checked checkbox values into comma separated values so i can then parse as a query string. How would i go about this? .serialize() makes the string over complicated
I have multiple checkboxes with name=ap[] and want to use jquery to convert the
Share
jQuery.fn.map itterates over a jQuery set, and returns a new array (inside a jQuery wrapper) which contains nodes equal to the return value of each itterarion. You can then get that array by calling jQuery.fn.get, then use that array for anything you want:
In your case this can be applied as such: