Forum Post: RE: Javascript and CheckBox component

Status
Not open for further replies.
R

Ricardo Perdigao

Guest
There is probably 10 different ways to do this ... Here is how I do it: On the value change of the mobilecheckboxgroup: var str = ''; $('input[name="mobilecheckboxgroup"]').each(function(){ if (this.checked == true) { str += $(this).val() + ','; } }); localStorage.setItem('CheckedList',str'')); This will should work if you have one checkbox or multiple checkboxes on the group. The localStorage "CheckedList" will have a list of of all the Checkboxes that were checked. Regards, Ricardo

Continue reading...
 
Status
Not open for further replies.
Top