You should take a look at the AHAH Example (D6) or AJAX Example (D7) in Examples project, <a href="http://drupal.org/project/examples">http://drupal.org/project/examples</a>. Also, <a href="http://randyfay.com/ahah">http://randyfay.com/ahah</a> or <a href="http://randyfay.com/ajax">http://randyfay.com/ajax</a> might help.<br>
<br>All of these have examples of select controls driving behavior.<br><br>-Randy<br><br><div class="gmail_quote">On Thu, Dec 9, 2010 at 2:24 AM, jayak kumar <span dir="ltr">&lt;<a href="mailto:jayakumarstudies@gmail.com">jayakumarstudies@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi,<br>I want to do the same. but i dont know where to use the javascript code for form-api of select-list. Can you please give me small code example for where to write the javascript in FormAPI?. <br>
<br>The requirement is to bring the data record from database table and fill the form with respected fields when i select dropdown(select-list).<br>
<br>Thank you<br>Jayakumar<br><br><br>Im not sure what are you talking abotu exactly but try to put javascript<br>
into the select - onchange=&quot;submit();&quot;<br>
*<br>
*<br>
*<br>
*<br>
*<br>
*<br>
*<br>
*S pozdravom / Sincerely yours,*<br>
*<br>
*<br>
*Ivan Jaro?*<br>
*<a href="http://www.ivanjaros.com/" target="_blank">www.ivanjaros.com</a> &lt;<a href="http://ivanjaros.com/" target="_blank">http://ivanjaros.com</a>&gt;*<br>
tel: +421 948 496 678<br>
skype: ijaros<br>
</blockquote></div><br><br clear="all"><br>-- <br>Randy Fay<br>Drupal Module and Site Development<br><a href="mailto:randy@randyfay.com">randy@randyfay.com</a><br>+1  970.462.7450<br><br>