Forums / Developer / Submit error / Comment51664

Author Topic

Virgilio Lemos

Tuesday 01 September 2009 12:07:19 pm

Comment51664

The code you provided demonstrated that javascrip is working.
By printing the variables I could verify that for IE all of then was empty.
I inserted "value=" for Select Estado and worked great for both browsers.

Do you know how to define value for an select auto filled like the "Cidade" bellow?

<form name="Options" action={"/content/search"|ezurl}>
<select name=" Estado" id="search-selection-estado" onChange="fillSelectFromArray(this.form.Cidade, ((this.selectedIndex == -1) ? null : cidade[this.selectedIndex-1]));">
<option selected="selected" value="">
<option selected="selected" value= RJ> RJ
</select>
<select name=" Cidade" id="search-selection-cidade">
<option selected="selected">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</option>
</select>
</form >

OBs. This is not the original code, but has also the same problem.