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); Quote 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. Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.