You should take a look at the AHAH Example (D6) or AJAX Example (D7) in Examples project, http://drupal.org/project/examples. Also, http://randyfay.com/ahah or http://randyfay.com/ajax might help.
All of these have examples of select controls driving behavior. -Randy On Thu, Dec 9, 2010 at 2:24 AM, jayak kumar <[email protected]>wrote: > Hi, > 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?. > > The requirement is to bring the data record from database table and fill > the form with respected fields when i select dropdown(select-list). > > Thank you > Jayakumar > > > Im not sure what are you talking abotu exactly but try to put javascript > into the select - onchange="submit();" > * > * > * > * > * > * > * > *S pozdravom / Sincerely yours,* > * > * > *Ivan Jaro?* > *www.ivanjaros.com <http://ivanjaros.com>* > tel: +421 948 496 678 > skype: ijaros > -- Randy Fay Drupal Module and Site Development [email protected] +1 970.462.7450
