Check if textarea is empty

Check if textarea is empty

  1. <script>
  2.       if (comment.value==""){
  3.               $(".button").hide()
  4.       } else {
  5.               $(".button").show()
  6.       };
    </script>
  7. <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