JS simple operation select and dropdownlist examples_javascript skills
WBOY
Release: 2016-05-16 16:30:19
Original
1411 people have browsed it
The example in this article describes the simple JS method of operating select and dropdownlist. Share it with everyone for your reference. The specific implementation method is as follows:
1. js select server control select and dropdownlist
var selText = document.getElementById("DropDownList1").options[document.getElementById( "DropDownList1").selectedIndex].text;
I hope this article will be helpful to everyone’s js and .net programming design.
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