Код: Выделить всё
[url=#]Activate radio button flug![/url]
Код: Выделить всё
$('#activateRadio').click(function(){
//check if radio button is not checked
if ( ! $("input[name='radio3']").is(':checked') ) {
alert("The button was not checked. Now it should be checked!");
//remove disabled attribute
$("input[name='radio3']").removeAttr('disabled');
$("input[name='radio3']").attr('checked', 'checked');
}
else {
alert("The button is already checked!");
}
});
Подробнее здесь: https://stackoverflow.com/questions/165 ... ith-jquery
Мобильная версия