How to get value from the textarea field when it's not equal "".
I tried this code, but when I enter text into textarea the alert() isn't works. How to fix it?
<textarea name="textarea" placeholder="Enter the text..."></textarea>
$(document).ready(function () {
if ($("textarea").value !== "") {
alert($("textarea").value);
}
});