Posts by Zenilton • 11 points
1 post
-
1
votes3
answers125
viewsA: Enable/Disable input by id
Wouldn’t it be better to use the class attribute? For example class="bt": $(document).on('click', '.bt', function() { $('.bt').attr('readonly', false); $(this).attr('readonly', true); });…