For example, when using DWR, if you want to pass the parameters of the drop-down box to the background, you need to obtain the value of the drop-down box first.
In fact, it is very simple to get the value of the drop-down box.
The most critical piece of code is:
onchange= "show(this.options[this.options.selectedIndex].value);"
onchange="show(this.options[this.options.selectedIndex].value);"
show is a custom function name.
this.options[this.options.selectedIndex].value is the protagonist!
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