I need help with this. I'm creating a checkbox to select or deselect the
country options. Please help to give some clues and explaination. I'll be
very grateful. Thanks in advance.
Below are the code:
*Location: View/country/add.ctp file*
script type=text/javascript
$(document).ready(function
I don't think the class option works for multiple checkboxes.
What you can do is specify a div and work off of that (you can also reduce
your js code):
echo $this-Form-input(Country, array(options =
$viewData[countryList], multiple = checkbox, onclick =
resetSelectAll(); , div = countries ,