17 Replies Latest reply on Mar 2, 2016 9:36 AM by WolfShade

    SELECT (multiple) options ignoring selected attribute

    WolfShade Level 4

      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,

       

      ^_^