Last active
July 28, 2016 16:38
-
-
Save kevinweber/54d2bd9983594e8ade5f to your computer and use it in GitHub Desktop.
Change event for textarea (IE9+)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#textareaID').on('input change keyup', function () { | |
if (this.value.length) { | |
// textarea has content | |
} else { | |
// textarea is empty | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment