Here's a stumping one..
I have a CFC that does a lot of my presentation building, and one of which is a generic function that generates a select box. It takes a few arguments such as the values, the form name, what should be selected and so on..
It builds it fine, but I can't get the value to be selected when it is returned to the browser. The Selected="selected" is in the right place.
Now here's the stumping part. If it take that SAME code via view source, and copy it into the page that is returning the string from the CFC it to the screen, the option is selected.
This is what is returned from the CFC:
<select name="CatID" id="CatID">
<option value=""></option>
<option value="1">Test Option</option>
<option value="2" selected="selected">Test Option 2</option>
</select>
|
Go a head, copy it into a new page and it will be selected, but when it's returned from the CFC it is not. It's almost like the browser is not evaluating the select first to highlight the selected.