How to invoke this JS?
See figure, there are two sets of national city cascading menus: "Departure" and "destination",
The National City cascading menu made a JS file: City.js,
I am currently calling the City.js file in the "origin" group cascading menu, but "destination" does not succeed in cascading menu calls City.js.
How do experts solve this problem?
Thank you! ! ~
The form code is as follows:
Form id= "Form1" name= "search" method= "post" action= "" >
Departure:
Destination:
Please select
Please select
Please select
Please select
[ ]
I'll answer that.
Attachments: The user group you are in cannot download or view attachments
d8888d Huitie Content-------------------------------------------------------
Top up, thank you for your guidance! ~
Come on! ~
d8888d Huitie Content-------------------------------------------------------
Each road heroes, in the hurried past, please leave your ideas, thank you! ! ~
d8888d Huitie Content-------------------------------------------------------
Had to make a deep sigh, two days without a master to give me a prompt reply,
It's really disappointing! ! ~
d8888d Huitie Content-------------------------------------------------------
The first time to see only stickers without code--!
d8888d Huitie Content-------------------------------------------------------
OK, I'll put the code on! ! ~
d8888d Huitie Content-------------------------------------------------------
I really want to help you ... But I am a novice ... I can't help it. [Img]http://www.111cn.cn/bbs/images/smilies/default/sad.gif[/img]
d8888d Huitie Content-------------------------------------------------------
You such code, may let everyone can faint, but I have a piece of code should be more practical, the transplant force is relatively high you can refer to, maintenance is also good, support unlimited classification: [url=http://yuepin.com/explore/city.php] Link tag/http/ Yuepin.com/explore/city.php[/url], if there is any problem, can be raised to
I upload file sharing, because it is the full JS output, so you can also save the page
[ ]
Attachments: The user group you are in cannot download or view attachments
d8888d Huitie Content-------------------------------------------------------
In fact, the implementation is very simple, can be done with Ajax. The main use of the following technologies:
ID.options.add of Select (New Option ("literal", value));
d8888d Huitie Content-------------------------------------------------------
Two identical IDs are S1, which is the reason for unsuccessful. Want to help you change, but this ID definition, ho ho ....
Reorganize your object ID. It's too messy.
Please select
Please select
[]http://www.bkjia.com/phpjc/632558.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/632558.htmltecharticle How to call this JS? See figure, there are two groups of national urban cascading menu: "Departure" and "destination", the National City cascading menu made a JS file: City.js, I am currently in the "out ...