title: How to test if a String contains "__X__", and if so give an alert();
body: <p>I'm working on Dynamic page where <code>input#first.val()</code> is dynamic.</p>
  
  <p>Basically values I'll be getting are either Device Name or Device resolution..</p>
  
  <p>Say if <code>input#first.val()</code> is the Device name, like <code>"iPad"</code>, then I dont need any further action.</p>
  
  <p>But if <code>input#first.val()</code> is the Device resolution, like <code>"1024 X 768"</code>, then I want to alert the user.</p>
  
  <p>So how do I detect if <code>input#first.val()</code> is the Device resolution? </p>
  
  <p>Also, the Device resolution will be dynamic, so it could look like any of these...</p>
  
  <ul>
  <li>"<strong>1024 X 768</strong>"</li>
  <li>"<strong>480 X 640</strong>"</li>
  <li>"<strong>320 X 480</strong>"</li>
  </ul>
  
  <p>The common thing will be "<strong>_ X _</strong>"</p>
  
  <p>So how do I detect "<strong>_ X _</strong>" within <code>input#first.val()</code> and alert the user?</p>
  
  <p>Maybe with <code>:contains</code> and string object?</p>
  
  <pre><code>&lt;input type="text" id="first" name="name" value=""/&gt;
  </code></pre>