Quantcast
Channel: Adobe Community : Unanswered Discussions - ColdFusion
Viewing all articles
Browse latest Browse all 5794

SELECT (multiple) options ignoring selected attribute

$
0
0

Hello, all,

 

I've got CF code that is being used with a SELECT tag (multiple attribute), and it seems as though the SELECT tag is ignoring the selected attribute for the child options.

 

For example, I have code that will generate the following HTML:

 

<select name="selectA" id="selectA" multiple>    <option value="">ALL</option>    <option value="Option 1" selected="selected">Option 1</option>    <option value="Option 2">Option 2</option>    <option value="Option 3" selected="selected">Option 3</option></select>

 

But when the page loads, none of the options are selected.  Any suggestions?  What am I missing, here?

 

V/r,

 

^_^


Viewing all articles
Browse latest Browse all 5794

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>