javascript - using Change on an Input and then modifying the input's ATTR? -
given:
html
<input checked="checked" class="list_completed_checkbox" id="list_item_completed" name="list_item[completed]" type="checkbox" value="1">
jquery:
$('.list_completed_checkbox').change(function() { $(this).attr('disabled', 'disabled'); });
when check or uncheck checkbox, why isn't disabled attr being applied input?
thanks
Comments
Post a Comment