Home > Web Front-end > JS Tutorial > Implementation code for operating HTML controls under jquery_jquery

Implementation code for operating HTML controls under jquery_jquery

WBOY
Release: 2016-05-16 18:36:37
Original
957 people have browsed it

Operation drop-down box [Select]

1. $("#seelctId").append("");//Add option to the drop-down box (ddlSayTo This is ID of the drop-down box)

 $("#seelctId").val(optionval);//Select the option just added

2. $("#seelctId option:selected"). text();//Get the text value of the currently selected option

 $("#seelctId").val();//Get the option value of the currently selected option

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