How to achieve this effect

Source: Internet
Author: User
How to achieve this effect, for example, there is a set of radio buttons at the top, which are placed horizontally. Below is a form in a div layer. When the page is opened, no radio button is selected, and the form in the layer is displayed in gray, which means it cannot be clicked. Then, selecting any radio will show how different forms in the layer can achieve this effect.
For example, there is a set of radio buttons at the top, which are placed horizontally. Below is a form in the div layer.
When the page is opened, no radio button is selected, and the form in the layer is displayed in gray, which means it cannot be clicked.
Then, if you select any radio, different forms in the layer will be displayed without refreshing the page.

How to implement it?

------ Solution --------------------
ChangeForm.html
HTML code
  CheckScript function changeForm (param) {document. getElementById ("ifr"). src = param;} scriptForm1    Form2    Form3

------ Solution --------------------
Decisive Ajax:
Reference;
Http://topic.csdn.net/u/20120513/19/6133363b-ea5a-4b36-b719-b0e8483a15e1.html
Http://topic.csdn.net/u/20120516/09/dd9c19b5-bbf3-4f1f-bdbb-d58ade236f5f.html

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.