Check if textarea is empty
- <script>
- if (comment.value==""){
- $(".button").hide()
- } else {
- $(".button").show()
- };
</script>
- <textarea name="comment"></textarea>
So my problem is, I don't know how I am supposed to check if a textarea is empty.
I want to accomplish this "live" effect thing:
If textarea is empty, disable/hide .button
else show .button