Hello to all, im using the example in old blog regarding "SELECT using
values from a database table":
staff = db(db.staff.ALL).select()
FORM(TR("Select a user :",
SELECT(_name='staffselect',
*[OPTION(staff[i].username, _value=str(staff[i].id)) for i
in range(len(staff))])),
TR(INPUT(_type='submit')))
it renders like this:
<select>
<option value="a">a</option>
<option value="b">b</option>
<option value="c">c</option>
</select>
my "annoyingly" problem is that i have to change to option b or c and
then back to option a to trigger the onchange event for option a. i
want to add a blank option as the first one, i need it beacuse im
using an ajax call to populate another dropdown with the selected
value in the first dropdown
i think it will be solved if the dropdown is like this:
<select>
<option value=""></option>
<option value="a">a</option>
<option value="b">b</option>
<option value="c">c</option>
</select>
that way i just select option a or b or whatever option i want wihtout
going back and forth.
does it make sense?