I have a select box in a webpage that depending on a database registry it puts the value select="selected" on the option tag in the html...
this is accomplished... but the problem is althoug in the html code the option shows that it is selected firefox ignores it... in IE7 works fine... i don't know what could be the problem here's the code that prints the selected attribute...
while ($dato = mysql_fetch_object($datos))
if ($center->address->state == $dato->id)
print("<option selected='selected' value='$dato->id'> $dato->name </option>");
print("<option value='$dato->id' > $dato->name </option>");
this works fine and in the web page the result is:
<select name="_state" id="_state">
<option value="null">Choose a State</option>
<option selected='selected' value='2' selected>California</option>
in firefox the selected option is always the "Choose a State" one...
I have search for a solution for this but haven't found any... is this a firefox bug??
thanks in advance...