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
this works:
$.contains( document.documentElement, document.body ); // true var babyEl = $('div#id'); var daddyEl = $('div#ID'); if($.contains(babyEl, daddyEl)) { //do fun stuff }