Home > Web Front-end > JS Tutorial > body text

Summary of using JQuery text box_jquery

WBOY
Release: 2016-05-16 18:26:35
Original
897 people have browsed it

1. For the change event of the text box, you can use propertychange, for example:

Copy code The code is as follows:

$("#txtDataDate").bind("propertychange",function(){
});


2. Get the value of the selected RadioButton
Copy code The code is as follows:

var radio_value = $(" input[type=radio][checked]").val();


3. The change event of the drop-down list, and getting the value of the selected option
Copy the code The code is as follows:

$("#drop-down list").change(function() {
//Get the value of the selected item
var select = $(this).val();
}).change();
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template