BillyMako Posted August 21, 2008 Share Posted August 21, 2008 Hey, I have a javascript validation code which i need to attach to this drop down menu but i don't know how i can attach it so that it is activated when the list is clicked on. $zones_array = array(); $zones_query = tep_db_query("select zone_name from " . TABLE_ZONES . " where zone_country_id = '" . (int)$country . "' order by zone_name"); while ($zones_values = tep_db_fetch_array($zones_query)) { $zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']); } echo tep_draw_pull_down_menu('state', $zones_array); Link to comment https://forums.phpfreaks.com/topic/120785-validation-in-drop-down-php/ Share on other sites More sharing options...
DeanWhitehouse Posted August 21, 2008 Share Posted August 21, 2008 what you said doesnt make sense, please reliterate. Link to comment https://forums.phpfreaks.com/topic/120785-validation-in-drop-down-php/#findComment-622586 Share on other sites More sharing options...
trq Posted August 22, 2008 Share Posted August 22, 2008 You would likely need to hack the tep_draw_pull_down_menu() function to incormperate your javascript. We can't help you without seeing the relevent code that actually creates the dropdown. Link to comment https://forums.phpfreaks.com/topic/120785-validation-in-drop-down-php/#findComment-622597 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.