Page 1 of 1

Refresh Radio Buttons in Jquery

Posted: Thu Jan 30, 2014 6:09 pm
by Bad Addy

I have the following code:

code $('input[name=mobileradiogroup_2]').each(function(){
$(this).checkboxradio("refresh");
});
/code

But each time the event is actioned, it does not refresh the buttons and remain selected ?


Refresh Radio Buttons in Jquery

Posted: Thu Jan 30, 2014 6:54 pm
by Kateryna Grynko

Hi,

You can use this code:preAppery("mobilecheckboxgroup").find("input").each(function(){
$(this).attr("checked", false).checkboxradio("refresh");
});/preWhere 'mobilecheckboxgroup' is a name of checkboxgroup component.


Refresh Radio Buttons in Jquery

Posted: Thu Jan 30, 2014 7:03 pm
by Bad Addy

Thank you, but that does not work :(


Refresh Radio Buttons in Jquery

Posted: Thu Jan 30, 2014 8:19 pm
by Bad Addy

I thought radio buttons could only have one pressed at once. But here, I can have two pushed.... Help!!


Refresh Radio Buttons in Jquery

Posted: Thu Jan 30, 2014 9:30 pm
by Kateryna Grynko

There can be only one item chosen at once. How did you push two? Do you have a screenshot?

Sorry, it was as example for checkbox. Here is an example for radiobutton:preAppery("mobileradiogroup_16").find(":checked").attr("checked", false).checkboxradio("refresh");/pre


Refresh Radio Buttons in Jquery

Posted: Thu Jan 30, 2014 10:24 pm
by Bad Addy

Thank you :)