Dongzhi Yang7528784
Posts: 0
Joined: Mon May 11, 2015 6:28 am

how to set and get checkbox value in Javascript

Hi,

Could you let me know how to get checkbox value in javascript. If it's checked, should return true, otherwise returns false.

Also , how can i set the checkbox value in javascript. ?

Thanks

Dongzhi

Dongzhi Yang7528784
Posts: 0
Joined: Mon May 11, 2015 6:28 am

how to set and get checkbox value in Javascript

Hi Alena,

The following code works from the first link under the Radio section:
$('input[name="radio_group"][value="1"]').attr('checked', true);
$('input[name="radio_group"]').checkboxradio("refresh")

Thanks

Dongzhi

Return to “Issues”