Python learns the eighth chapter of jquery

Source: Internet
Author: User

Brief introduction:

jquery is a JavaScript library. The great drop simplifies JavaScript programming.

Content included:

HTML element Selection

HTML element manipulation

CSS actions

HTML Event functions

JavaScript Effects and animations

HTML DOM Traversal and modification

Ajax


1: Download  jquery There are two versions of  jQuery  available for download: One is production version jQuery.min.js (minimized and compressed) and the other is the development version jquery.js (uncompressed for debugging or reading). These two versions are available for http://jquery.com/download/  download. 2: How to import jquery--directly in the HTML 
  


Example:

Referencing jquery in login.html

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/86/9A/wKioL1fFHmTD-G2gAABcOehgmFE298.jpg "title=" D5fcbaaf-add6-4b04-a46a-5fa6954a3594.jpg "alt=" Wkiol1ffhmtd-g2gaabcoehgmfe298.jpg "/>

Effect

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/86/9A/wKioL1fFHn6RcJDIAAApyBATb84043.jpg "title=" 63b19a8c-d4a8-43d0-b441-a195f119dc9f.jpg "alt=" Wkiol1ffhn6rcjdiaaapybatb84043.jpg "/>

jquery Asynchronous request

<! doctype html>


2. Press F12 in Google Chrome to enter debug mode. In the console, enter

$ (' #loginform '). The serialize () function is to get all the values in the form

$: means jquery

LoginForm: Indicates selector

ID: is the unique identifier of the HTML element, the ID of the same page cannot appear with duplicate name

650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/86/9A/wKiom1fFH1jDFXQ-AABYI2acY2s751.png "title=" C4c747d3-0e5e-4d71-986a-111945e47df5.png "alt=" Wkiom1ffh1jdfxq-aabyi2acy2s751.png "/>

Val () manipulate the value of the form

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/86/9A/wKiom1fFH2jx5lLSAAAR7_niWMg543.png "style=" float: none; "title=" 9f242772-b319-4be5-90d6-87f05edb3e6a.png "alt=" Wkiom1ffh2jx5llsaaar7_niwmg543.png "/>

Get HTML

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/86/9A/wKioL1fFH2nSjPaSAAAw7xthjBY166.png "style=" float: none; "title=" Fbc40d1b-4482-4cbe-874b-99ec6698def2.png "alt=" Wkiol1ffh2nsjpasaaaw7xthjby166.png "/>


This article from "Do not abandon!" Do not give up "blog, declined reprint!"

Python learns the eighth chapter of jquery

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.