Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

dropdown not displaying selected

Posted on 2011-03-16
3
Medium Priority
?
251 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 1500 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

Amazon Web Services EC2 Cheat Sheet

AWS EC2 is a core part of AWS’s cloud platform, allowing users to spin up virtual machines for a variety of tasks; however, EC2’s offerings can be overwhelming. Learn the basics with our new AWS cheat sheet – this time on EC2!

Question has a verified solution.

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

Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
This video teaches users how to migrate an existing Wordpress website to a new domain.
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

704 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