Home >Web Front-end >JS Tutorial >Learn JQuery from scratch Lecture 3_jquery

Learn JQuery from scratch Lecture 3_jquery

WBOY
WBOYOriginal
2016-05-16 18:23:291027browse
Copy code The code is as follows:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="JQuery3.aspx.cs" Inherits="JQuery_1.JQuery3" %>









< input type="password" id="txt2" />
Male

www54talk
cn







The codes in the above DEMO are mine one by one Everything I knock out has been tested and everyone can use it with confidence. This DEMO mainly adds several types of values ​​​​for input boxes, which also lists two ways to obtain values. In addition to introducing the values ​​​​of text boxes, the DEMO also introduces drop-down boxes, radio button boxes, and more. The value of the selection box, a composite attribute selector is used here, which is used when multiple conditions need to be met at the same time. It's not as simple as a text box, you can get the value using an ID. When getting the value of select, you can also use a composite attribute selector, but to get the text of the drop-down box, you must first get the value, and then get the text based on the value.

That’s all for today’s lecture. In the next lecture, we will talk about using JQuery to assign values ​​to these common controls, because when we initialize the page, we often need to initialize certain controls.
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn