By sujith7c on
hello friends
i am troubled by a problem
my problem is when i select a select box (country) other select box should get populated
so how can i use JavaScript to solve this problem
i include js file
drupal_add_js($module_path.'dynslt.js');
and in form element i use attributes parameter
'#attributes' => array("onchange" =>"SelectSubCat()"),
but it is not working
Any idea
Comments
I don't have any ideas but I
I don't have any ideas but I would suggest reviewing this:
http://api.drupal.org/api/file/developer/topics/forms_api_reference.html/5
And also looking at View Source on the generated page to verify that the js loaded. If it didn't, you can always load it in your template file. I know this isn't ideal but it is fast.