Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 259
  • Last Modified:

dropdown not displaying selected

Experts,

I'm going crazy.

I have a base form built in PHP with five dropdowns.  There are additional rows added with jQuery depending on the type of equipment selected.

Two of the base dropdowns show the required selected values, but three of them don't!  

The page source shows all the options being done correctly with the right values "selected".

How can I debug this?

Capt
0
Glen Gibb
Asked:
Glen Gibb
  • 2
1 Solution
 
Glen GibbAuthor Commented:
Here is a copy of the markup.  The tags have been altered slightly so as not to render, but the values are correct.

The dropdowns that show the proper selected values are Type -> Line, and Material -> steel.   All the rest show "Choose" even though the selected values are pointing to the right items.

Can you help?

Capt
option value="0">Choose/option>
option value="1" selected="selected">line/option>
option value="2">facility/option>
option value="3">satellite/option>
option value="4">well/option>
option value="0">Choose/option>
option value="1">Champion Technologies/option>
option value="2">SimpleTek/option>
option value="3">Encana/option>
option value="4" selected="selected">Husky Oil/option>
option value="5">Enbridge/option>
option value="6">Suncor/option>
option value="7">Talisman/option>
option value="8">Shell Canada/option>
option value="9">Nexen/option>
option value="10">Imperial Oil/option>
option value="0">Choose/option>
option value="1" selected="selected">steel/option>
option value="2">fibreglass/option>
option value="3">Insert / Liner/option>
option value="0">Choose/option>
option value="1" selected="selected">Active/option>
option value="2">Down/option>
option value="3">Shut in/option>
option value="4">Abandoned/option>
option value="5">Licensed/option>
option value="6">Flowing Gas/option>
option value="0">Choose/option>
option value="1">Belly River/option>
option value="2">Cardium/option>
option value="3">Dunvegan/option>
option value="4">Viking/option>
option value="5">Manville/option>
option value="6">Jurassic/option>
option value="7">Triassic/option>
option value="8">Permium/option>
option value="9">Carboniferous/option>
option value="10">Wabamun/option>
option value="11">Woodbend-Winterburn/option>
option value="12">Beaverhill Lake/option>
option value="13">Elk Point/option>
option value="14">Medicine Hat/option>
option value="15">Brooks/option>
option value="16" selected="selected">Cessford/option>
option value="17">Taber/option>

Open in new window

0
 
Lukasz ChmielewskiCommented:
Download Chrome, run the debug tool.
I guess FF has it's firebug (?) extension - you can use this also, I use Opera dragonfly.
0
 
Glen GibbAuthor Commented:
That was the key.  Had to look closer at Firebug in FF.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now