Solved

dropdown not displaying selected

Posted on 2011-03-16
3
247 Views
Last Modified: 2012-05-11
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
Comment
Question by:Glen Gibb
  • 2
3 Comments
 

Author Comment

by:Glen Gibb
ID: 35146766
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
 
LVL 27

Accepted Solution

by:
Lukasz Chmielewski earned 500 total points
ID: 35146771
Download Chrome, run the debug tool.
I guess FF has it's firebug (?) extension - you can use this also, I use Opera dragonfly.
0
 

Author Closing Comment

by:Glen Gibb
ID: 35152291
That was the key.  Had to look closer at Firebug in FF.
0

Featured Post

The New “Normal” in Modern Enterprise Operations

DevOps for the modern enterprise offers many benefits — increased agility, productivity, and more, but digital transformation isn’t easy, especially if you’re not addressing the right issues. Register for the webinar to dive into the “new normal” for enterprise modern ops.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question