I have the following radiocontrols with Default checked to \"All\". If user checks some other radio button and submits, on postback i want to retain the checked button, so user
Here's a quick way:
var value = window.location.href.match(/[?&]type=([^]+)/) || []; if (value.length == 2) { $('input[name="EventType"][value="' + value[1] + '"]').prop('checked', true); }
Here's a demo: http://jsfiddle.net/agW9g/