html - radio button read only without fading -
is possible make radio button read only without fading ?
as of people before, don't see use of it, if need it, here's hack:
include jquery javascript on page , add class attributes radios:
<input checked="checked" name="n" value="1" type="radio" class="rdonly checked" /> <input type="radio" name="n" value="2" class="rdonly"/>
and add javascript hack:
$(document).ready(function() { $("input.rdonly").change(function() { $('input.checked').attr('checked', true); }); });
this make radios "checked" class instantly become selected when user tries select radio "rdonly" class. looks read only, not faded.
i hope you're looking for, again, think i'd advise against it. cheers
Comments
Post a Comment