JQuery uses control nodes to pass parameters only through the get method at the front end.

Source: Internet
Author: User
This article mainly introduces jQuery's function of passing parameters only through the get method at the front end through the control node. The example shows how to use jQuery to operate nodes and how to control the parameter passing through the get method at the front end, it has some reference value. If you need it, you can refer to the example in this article to describe how jQuery uses control nodes to transmit parameters only through the get method at the front end. Share it with you for your reference. The specific analysis is as follows:

This is also the content of html dom. The core of Front-End scripting languages such as javascript and jquery is to control each node and add, delete, modify, and query each node, in this way, javascript, jquery, and other front-end scripts can be used to write beautiful things.

I have already introduced the javascript control node in the previous [Examples of adding, deleting, modifying, and querying and using JavaScript For webpage nodes]. Now I use jquery, an advanced javascript scripting language, in addition, jquery is used to transmit parameters between different webpages. parameters are transmitted only through the get method on the foreground and mounted to the server without jsp and asp, write requests and other server languages to obtain parameters.

I. Basic Objectives

The webpage contains a span node that exists under the Black p-red p-blue p. Once you click it, obtain the id of the above node respectively.

Click the Add button to add a hyperlink node. Each Hyperlink contains the Chinese parameter Hello 1, hello 2, hello 3 ......, The scrolling entries automatically follow the increase of the node and are passed to jqrec.html. in this example, the jqrec.html page can obtain this Chinese parameter.

Click the Clear button to clear all nodes under ul.

Ii. Production Process

The full jqrec.html code is as follows. The function used involves analyzing the regular expression of the url address. The actual code is only, $ ("# rec"). text (unescape (getUrlParam ("text ")));

The Code is as follows:





Jqrec

Related Article

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.