I use Zend_Form to output the given group of flags:
<label style="white-space: nowrap;"><input type="checkbox" name="user_group[]" id="user_group-20" value="20">This Group</label>
With a normal HTTP message, these values are passed as an array, but when I'm somewhat obsessed with how to capture all the values using jQuery. I decided that I could select a group using:
$("input[@name='user_group[]']").val()
but it just captures the value of the first checkbox in the list, regardless of whether it is checked. Any ideas?
javascript jquery
dragonmantank Jan 06 '09 at 14:35 2009-01-06 14:35
source share