Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show submit button on textarea edit

I have a textarea and a button. I want the button to appear if the text in the textarea is edited. Not on focussed but on edit test. Is this possible in jquery?

like image 977
JeffreyR Avatar asked Sep 18 '26 15:09

JeffreyR


1 Answers

Try this

HTML

<textarea id="t_area" rows="3">444</textarea>
<button id="btn" style="display:none">Save</button>

Script

$('#t_area').on('keyup',function() {
    $('#btn').show();
});

DEMO

like image 95
Sridhar R Avatar answered Sep 20 '26 05:09

Sridhar R



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!