Home  >  Article  >  Web Front-end  >  Summary of using JQuery text box_jquery

Summary of using JQuery text box_jquery

WBOY
WBOYOriginal
2016-05-16 18:26:35900browse

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();
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