Solved

dropdown not displaying selected

Posted on 2011-03-16
3
240 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

744 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now