i am using this jQuery function but when i run my application this function doesn't executes.
actually control goes to this func.but doesn't go inside this to execute code in it.
what is the reason??
this func.is used for check uncheck of radio.
$("input[type='radio']").click(function () {
var previousValue = $(this).attr('previousValue');
var name = $(this).attr('name');
if (previousValue == 'checked') {
$(this).removeAttr('checked');
$(this).attr('previousValue', false);
} else {
$("input[name=" + name + "]:radio").attr('previousValue', false);
$(this).attr('previousValue', 'checked');
}
});