Update JS to latest standards plus add ability to work on TextArea tags
-
.attr has been depricated and .prop should be used instead. Also, at present this plugin does not work on TextArea tags.
The snippet below can be used as a replacement for the current JS in this plugin. It now uses the latest standard and work on all inputs including textareas.
jQuery(document).ready(function($){
$(“.disabled input”).prop(‘disabled’,true);
$(“.readonly input”).prop(“readonly”, true);
$(“.disabled textarea”).prop(‘disabled’,true);
$(“.readonly textarea”).prop(“readonly”, true);
});
- The topic ‘Update JS to latest standards plus add ability to work on TextArea tags’ is closed to new replies.