Bad Addy
Posts: 0
Joined: Fri Dec 13, 2013 9:34 pm

Refresh Radio Buttons in Jquery

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 ?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Refresh Radio Buttons in Jquery

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.

Bad Addy
Posts: 0
Joined: Fri Dec 13, 2013 9:34 pm

Refresh Radio Buttons in Jquery

Thank you, but that does not work :(

Bad Addy
Posts: 0
Joined: Fri Dec 13, 2013 9:34 pm

Refresh Radio Buttons in Jquery

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Refresh Radio Buttons in Jquery

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

Bad Addy
Posts: 0
Joined: Fri Dec 13, 2013 9:34 pm

Refresh Radio Buttons in Jquery

Thank you :)

Return to “Issues”