title: jQuery error when selecting controls with id which contains empty spaces
body: <p>I'm trying to select some textboxes by their name. While this is working fine for controls which don't have empty spaces in their name, I'm getting this error for controls with empty space in their name:</p>
  <blockquote>
  <p>Error: Syntax error, unrecognized expression: input[name=1180
  Sparkling Water]</p>
  <p>throw new Error( &quot;Syntax error, unrecognized expression: &quot; + msg );</p>
  </blockquote>
  <p>This is the code I'm using to get the textbox value:</p>
  <pre><code>  var currentVal = parseInt($('input[name=' + fieldName + ']').val());
  </code></pre>
  <p>How can I fix this?</p>