I am using elastic plugin here is the jQuery i am using for it:
<script type="text/javascript">
jQuery(function(){
jQuery('textarea').elastic();
});
</script>
I have 5 textarea that i am using in code. So when user is at textarea1 lets say he press enter 10 times and expands the textarea. Is there a way when he clicks on second textarea or clicks outside of textarea1 the textarea1 goes back to its orignal size?
Also can opposite of this be achived also? If textarea1 has 3 rows. Can on click on text area increase the size to 5 rows?