I have the following drop down list in an HTML Widget:
<div class="JBFieldWidget">
<select name="mfilter" id="mfilter-select" style="height:20px;">
<option value="0"></option>
<option value="1" selected>All</option>
<option value="2">Tractors</option>
<option value="3">Syracuse</option>
<option value="4">Rochester</option>
<option value="5">Trailers</option>
</select>
</div>
Is it possible to fire an event when this field changes and reference the value of the select option? I would like to use this to control which filter is applied to a report widget.
Also, is it possible to have a ParaSQL button change the value of this HTML select object from the Javascript event? I would like to reset this drop down to option 0 when a user runs a manual search.
I realize I could create a separate table with a list of search criteria and use a record object to create a drop down widget, but then each user would be editing a record in the table and that seems rather cumbersome.
Chris