I want to know if the textarea value contains a certain word. This is not working for me.
var value = $(\'#embedModal textarea\').val(); if($(value).contains(\'i
You can do this as well:
if($('#embedModal textarea:contains("iframe")').length > 0){ //TODO: do stuff }