title: jquery check if element exist in val
body: <p>Why is var x giving 0 length for iframe. I'm trying to check if iframe tag exits inside val. </p>
  
  <pre><code>&lt;textarea name="embed"&gt;
      &lt;iframe src="http://.."&gt;&lt;/iframe&gt;
  &lt;/textarea&gt;
  
  $($('#embedModal textarea').val());
  var x = $textareaval.find('iframe').length;
  </code></pre>
  
  <p>I'm able to get a length in the example below for embed. </p>
  
  <pre><code>&lt;object&gt;&lt;embed&gt;&lt;/embed&gt;&lt;/object&gt;
  textareaval.find('embed').length;
  </code></pre>