After a user submits a comment, I want the textarea and summit button to be "disabled" and somewhat visually disabled.
Like Youtube.
How can I do that with Jquery using the simplest plugin and/or method?
Simply set the disabled
attribute on your input elements when the button is clicked:
$("#mybutton").click(function(){
$("#mytext,#mybutton").attr("disabled","disabled");
});
Example: http://jsfiddle.net/jonathon/JcXjG/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With