Hi,

Please consider the code below, supposed to check all child checkboxes
wjen a parent checkbox has been checked.


Hi,

Please consider the code below, supposed to check all child checkboxes
wjen a parent checkbox has been checked.


//parentCheckbox and childCheckboxes are two variables set earlier.
//Here are typical values they produce once alert()
//I reproduce the exact string outputed when alert() :
//childCheckboxes -> child-city-id-120
//parentCheckbox-> #city-id-120

$('INPUT[class=childCheckboxes]').attr('checked', $(parentCheckbox).is
(':checked'));


Do you spot the problem?

Thanks in advance for your help.

Regards,

-jj. :)


Do you spot the problem?

Thanks in advance for your help.

Regards,

-jj. :)

Reply via email to