title: jQuery - Query for textbox by value? (value contains quotation marks)
body: <p>I have a string in JavaScript that contains a quote mark - for example, <code>Don't click this checkbox</code> or <code>He said "hi"</code>. I am trying to find a checkbox that has the exact same value.</p>
  
  <p>For my first example, I have the HTML:</p>
  
  <pre><code>&lt;input type="checkbox" value="Don\'t click this checkbox"&gt;
  </code></pre>
  
  <p>And my variable q has the string <code>Don't click this checkbox</code> in it. To try and query for this checkbox, I have the following code. Where am I going wrong?</p>
  
  <pre><code>q = q.replace("'", "\'").replace("\"", "\\"");
  var $checkbox = $("input:checkbox[value='" + q + "']");
  </code></pre>