I have an HTML page containing a search box containing several text fields.
The first part of the search box is the SELECT drop-down list , which contains many types of reports. Each type of report needs to fill out 1 or more text fields to filter query results. My goal is to hide text fields that are not required by the current report type.
How to transfer the current selected value from SELECT to Javascript function via onchange event ?
<select name="report_type" onchange="hide();">
<option value="full_history">Full History</option>
<option value="partial_history">Partial History</option>
</select>
source
share