
Cant get to work. Please help
Hi!
I have been trying to get the script to work. Right now i have 2 Selects that im trying to link but it wont work. The script eventually get to 4 (Country -> State -> City -> Zip)
Heres the snippet:
$sc_ajax_select_boxes->add_select_box('countries','countries_id','countries_name','countries_id','','sel1','sel_id_1','');
$sc_ajax_select_boxes->add_select_box('zones', 'zone_id', 'zone_name', 'zone_id','','sel2','sel_id_2','');
$sc_ajax_select_boxes->link_select_boxes('sel1','sel2', 'zone_country_id','');
$sc_ajax_select_boxes->place_jscripts();
$sc_ajax_select_boxes->show_select_box('sel1');
$sc_ajax_select_boxes->show_select_box('sel2');
And heres the table structure:
"countries" table:
countries_id - int
countries_name - varchar
countries_iso_code_2 - char
countries_iso_code_3 - char
address_format_id - int
"zones" table:
zone_id - int
zone_country_id - int
zone_code - varchar
zone_name - varchar
link: [
www.myblankeeinc.com]
I dont know if im missing something obvious here but anyhow thanks for the help in advance!