I'm trying to write jQuery code to detect if a live string contains a specific set of characters then the string alerts me.
HTML
<textarea class="type"></textarea>
My Jquery
$('.type').keyup(function() {
    var v = $('.type').val();
    if ($('.type').is(":contains('> <')")){
        console.log('contains > <');        
    }
    console.log($('.type').val());
});
if for example I typed the following
> <a href="http://google.com">Google</a> <a href="http://yahoo.com">Yahoo</a>
My code should console log alert me that there > < present in the string.
 
     
     
     
    