0

UPDATE SOLVED: Should be name = 'q1[]'

$("input[type=checkbox][name=q1]).click(function() {

    var bol = $("input[type=checkbox][name=q1]:checked").length >= 7;     
    $("input[type=checkbox][name=q1]").not(":checked").attr("disabled",bol);
});

I'm coming unstuck however, the need to serialize the results when saving means I have to have name set to name=q1[] in the PHP code and at this point, the above jQuery to limit the number of checked checkboxes stops working.

I've tried adding in `name=q1[]' but the code simply stops working!

Any suggestions?

Homer_J
  • 3,277
  • 12
  • 45
  • 65

0 Answers0