How to call this JS? _ PHP Tutorial-php Tutorial

Source: Internet
Author: User
How to call this JS ?. How to call this JS? As shown in the figure, there are two sets of national urban cascade menus: "departure" and "destination". The National Urban cascade menu is made into a js file: city. js, I am currently "how to call this JS?

As shown in the figure, there are two groups of national urban cascade menus: "departure" and "destination ",
The National city cascade menu is made into a js file: city. js,
Currently, the city. js file is successfully called in the "departure location" Cascade menu, but the "destination" Cascade menu fails to call city. js,
How can Experts solve this problem?
Thank you !~!~


The form code is as follows:
Form id = "form1" name = "search" method = "post" action = "">

Departure location:


Destination:



Select


Select



Select


Select






[]

Let me answer

Attachment: you cannot download or view attachments in your user group.


D8888D reply content -------------------------------------------------------
Thank you for your advice !~
Please !~

D8888D reply content -------------------------------------------------------
Heroes and heroes, please leave your comments when you are in a hurry. thank you !~!~

D8888D reply content -------------------------------------------------------
I had to make a deep sigh. After two days, no expert gave me a prompt reply,
I'm really disappointed !~!~

D8888D reply content -------------------------------------------------------
For the first time, you can see only images without code --!

D8888D reply content -------------------------------------------------------
Okay. I will paste the code !~!~

D8888D reply content -------------------------------------------------------
I would like to help you... but I am a newbie... I really cannot help [img] http://www.111cn.cn/bbs/images/smilies/default/sad.gif#/img]

D8888D reply content -------------------------------------------------------
Your code may make everyone dizzy, but I have a piece of code that should be more practical. you can refer to it for better maintenance and support unlimited classification: [url = response
I uploaded files and shared them myself. because they are all JS output, you can save the page.

[]
Attachment: you cannot download or view attachments in your user group.
D8888D reply content -------------------------------------------------------
In fact, the implementation is very simple, and can be done using ajax. The following technologies are used:
Select ID. options. add (new Option ("text", value ));

D8888D reply content -------------------------------------------------------
The two identical IDs are all s1, which is the reason for the failure. I want to change it for you, but the ID defined here is too much ....

Reorganizing your object ID is too messy.

Select


Select



[]Why? As shown in the figure, there are two sets of national urban cascade menus: "departure" and "destination". The National Urban cascade menu is made into a js file: city. js. I am currently "coming out...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.