jquery val() contains()

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(‘iframe’)){…

How/where to define fancybox defaults?

Let’s say this is my fancybox config:

$(“.fancybox”).fancybox({
‘transitionIn’:’fade’,
‘transitionOut’:’fade’,
‘speedIn’:150,
‘speedOut’:150,
‘changeSpeed’:150,