place value in text box which has name in array format
<p>In a page I have a number of text box with name in array format. I want to put a value 'test' in one of them when a function is executed or event is occured. But my jquery code puts value in all the textboxes. Also I cannot put ID to the textbox  as its framework generated.</p>

<pre><code>&lt;input type="text" maxlength="255" name="School[school_name]"&gt;
&lt;input type="text" maxlength="255" name="School[contact_person]"&gt;
&lt;input type="text" maxlength="255" name="School[test]"&gt;




$('input:text[name=School[school_name]]').val('test');
</code></pre>

<p>Thanks
Ab</p>
