|
In this example given, what takes the place of
option[someoption] ?
What I'm doing is pulling a list of data from a database, using ASP, I'm writing an <option> for each row in the recordset.
If the row has and expiration_date, I want to use javascript to set the background color of that <option> to a different color.
So far my code looks like:
<option value = "MyValue"
<%
IF ExpDate <> "" then response.write "document.tpainfo.tpa.options[someoption].style.backgroundColor = 'red';" end if %>>
MyValue
</option>
__________________
This is in spanish when you're not looking.
|