How can i read the values from an array into the input text field using jquery?
<p>I have a jquery function which should read the values from an array to the text field. However, I am having a problem to read the zero position of an array into the text field.</p>

<p>enter code here</p>

<pre><code>$(function(){
    var values = ['one', 'two', 'three'];
        $('#room').val(values[0].text());  // not sure about this statement
});
</code></pre>

<p>This is my html code</p>

<pre><code>&lt;input id="room" /&gt;
</code></pre>
