on reseting radio button its wont reflect in gui
Closed this issue · 2 comments
If I try to reset radio button like follow
jQuery('input[name=radioname]').removeAttr('checked');
and try to get value using alert(jQuery('input[name=radioname]:checked').val()); it gives undefined.
But it wont reflects in GUI form.
Did I miss something?
I believe you need to do the following:
$.uniform.update([elem/selector string]);
If you need to change values on the form dynamically you must tell Uniform to update that element’s style. Fortunately, it’s very simple. Just call this function, and Uniform will do the rest.
$.uniform.update("#myUpdatedCheckbox");
If you don't mind updating all Uniformed elements or just don’t specifically know which element to update, you can just leave out the parameter (see below) and Uniform will update all Uniformed elements on the page:
$.uniform.update();
Thanks! Perfect got it working!
jQuery('input[name=radioname]').removeAttr('checked');
jQuery.uniform.update('input[name=radioname]');