I am trying to set a radio button. I want set it by using the value or the id.
This is what I\'ve tried.
$(\'input:radio[name=cols]\'+\" #\"+newcol).
In my case, radio button value is fetched from database and then set into the form. Following code works for me.
$("input[name=name_of_radio_button_fields][value=" + saved_value_comes_from_database + "]").prop('checked', true);