title: jQuery change input text value
body: <p>I can't find the right selector for:</p>
  
  <pre><code>&lt;input maxlength="6" size="6" id="colorpickerField1" name="sitebg" value="#EEEEEE" type="text"&gt;
  </code></pre>
  
  <p>I want to change the value to = 000000. I need the selector to find the "name" not the id of the text input.</p>
  
  <p>Shouldn't this work?:</p>
  
  <pre><code>$("text.sitebg").val("000000");
  </code></pre>
  
  <p>The presented solution does not work, what's the problem with this?</p>
  
  <pre><code>$.getJSON("http://www.mysitehere.org/wp-content/themes/ctr-theme/update_genform.php",function(data) {
      $("#form1").append(data.sitebg);
      $('input.sitebg').val('000000');
  });
  </code></pre>
  
  <p>The JSON data is working correctly; the idea is to later pass the JSON values into the form input text values. But is not working :(</p>