Link to home
Start Free TrialLog in
Avatar of Glen Gibb
Glen GibbFlag for Canada

asked on

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
Avatar of Glen Gibb
Glen Gibb
Flag of Canada image

ASKER

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

ASKER CERTIFIED SOLUTION
Avatar of Lukasz Chmielewski
Lukasz Chmielewski
Flag of Poland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
That was the key.  Had to look closer at Firebug in FF.