Re: Client event: On change
Reply #2 –
By adding .trigger('change'); to your code it works fine.
$('input[type=checkbox]').change(function () {
if ($(this).val() == 'yes') {
$("#ctrl-bar_staff_qty").show();
} else {
$("#ctrl-bar_staff_qty").hide();
}
}) .trigger('change');
Thanks
Edit: works if only one of this kind into the form. If more than one, on.change occur for all :-( --> probably because no id define.
I you have tips for workaround this, i will be glad.