SyntaxFix
Write A Post
Hire A Developer
Questions
You get the value of the textarea, use it :
$('.type').keyup(function() { var v = $('.type').val(); // you'd better use this.value here if (v.indexOf('> <')!=-1) { console.log('contains > <'); } });