I'm using jQuery. I have a disabled textarea: <textarea id="textarea" disabled="disabled"></textarea>. I want to make it so that when a user clicks on the textarea, it will do something, such as an alert box. So, I have $('#textarea').click(function() { alert('Test'); });.
However, this only works when the textarea is not disabled. So, how can I make the click event fire even when the textarea is disabled?
instead of disabled="disabled" why not use readonly, readyonly is alomst same as disabled and the click event will works
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