Home > Web Front-end > JS Tutorial > Code to get select selected value in jquery_jquery

Code to get select selected value in jquery_jquery

WBOY
Release: 2016-05-16 18:05:31
Original
918 people have browsed it

jquery gets the selected text and value
Gets the selected text: $("#ddlregtype").find("option:selected").text();
Gets the selected value: $(" #ddlregtype ").val();
Get the selected index: $("#ddlregtype ").get(0).selectedindex;

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