before transmitting a SELECT object/array to the PHP processing, I’d like to suppress/omit a potentially empty element. As my SELECT box offers something like a NULL option:
<select name="a">
<option value=""></option>
<option value="1">1</option>
<option value="2">2</option>
I’d like to suppress the NULL value if it has been selected, like this:
<a href="#" onclick="document.formIndex.a.OMIT-ELEMENT(''); document.formIndex.submit(); return false">search</a>
Haven’t found anything really useful. Thanks for any hints how this could be done.
But why do you want to suppress it on the HTML side? You should handle it on the server side always