i have a form on which i need to store the state of all radio buttons if a user submit the form with errors (which in case the page would refresh).
I want to achieve something quite similar to this:
$(function(){
$('.example input[type="radio"]:checked').each(function(){
$(this).attr("checked",true);
});
Any help would much be appreciated!