SoFunction
Updated on 2025-02-28

javascript code to get select drop-down list value

For example, when using DWR, if you want to pass the parameters of the drop-down box to the background, you need to get 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:
Copy the codeThe code is as follows:

onchange="show([].value);"

onchange="show([].value);"
show is a custom function name.

[].value is the protagonist!