Jquery change input text value
<p>this is driving me nuts! I can't find the right selector for:</p>

<p></p>

<p>I want to change the value to = 000000</p>

<p>Shouldnt this work?:</p>

<pre><code>$("text.sitebg").val("000000");
</code></pre>

<p>Regards
Joricam</p>

<p>PS: I need the selector to find the "name" not the id of the text input.</p>

<p>The presented solution does not work, whats 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 ideia is to later pass the json values into the form input text values. But is not working :(</p>

<p>ps: it works if you use the suggestion bellow</p>
