All,

I am lost right now, still pretty green with jQuery. I have a number of
checkboxes on a page

<input type="checkbox" name="listProductID" value="2">
<input type="checkbox" name="listProductID" value="3">
<input type="checkbox" name="listProductID" value="4">
<input type="checkbox" name="listProductID" value="5">

and a button at the end.

<button name="editOptions" id="editOptions">Edit </button>

I would like to have the value of alll checked checkboxes put into a list
for use in a variable.

how would I go about this?

$().ready(function() {
        $('#editOptions').click(function(){
            alert($('#listProductID').val());//returns only the first value,
selected or not
        });
    });

Thanks

-- 
Duncan I Loxton
[EMAIL PROTECTED]

Reply via email to