Re: [PHP] why is <option '97' selected>Japan</option> not highlighted



FireFox may be "remembering" whatever you last selected.

That's a browser "feature" you have to live with.

Move along, nothing to see here :-)

On Sun, December 30, 2007 9:46 pm, Mary Anderson wrote:
in my <select> scrolling list?

Here is the offending code (abbreviated)
<select name="sr_location_id" class="" size=10 >
<option value='94' >Italy</option>
<option value='97' selected>Japan</option>
<option value='252' >Jersey</option>
<option value='294' >Jiangsu</option>
<option value='295' >Jiangxi</option>

I have data series which have a location specified. I wish to edit
the
data series. I select the location from the database (Note: database
stuff is not a problem) and display a scrolling list with the location
specified by that data series highlighted. Problem is, even though
the
option is marked selected, the Japan entry in the scrolling list does
not highlight.

The offending page may be viewed at

http://www.demog.berkeley.edu/~maryfran/memdev/edit_series.php?sr_data_series_id=2


Sometimes when it loads, Japan is highlighted correctly. Sometimes
nothing is highlighted. Sometimes some random option in the list is
highlighted. Similar behavior is observed in the data series types
scrolling list next to the locations list on the page.

I have been using Firefox 2.0.0.3. I just tried it out on IE7 and it
seems to work OK. Maybe it is a browser problem, but the XDynamic
HTML
Definitive Reference seems to say that the selected attribute on
option
works OK with mozilla.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?
.



Relevant Pages

  • Re: [PHP] why is not highlighted
    ... Here is the offending code (abbreviated) ... I have data series which have a location specified. ... not highlight. ... it worked 100% of the time on Firefox 2.0.0.11. ...
    (php.general)
  • Re: Stupid stupid change in Frontpage
    ... your browser to the page you want to link to (or have it ... caused by attempts to automate simple tasks. ... features, but when you take features away and completely replace them ... difficult to highlight text in Word because the program tries guess what ...
    (microsoft.public.frontpage)
  • Re: Middle Click with Firefox
    ... > Jonathan Berry wrote: ... >> click on a tab and Firefox will close that tab. ... > This is the standard X select and paste mechanism: you can highlight ...
    (Fedora)
  • Re: Stupid stupid change in Frontpage
    ... It is the standard paste key combination for all Windows ... your browser to the page you want to link to (or have it ... difficult to highlight text in Word because the program tries guess what ... Ctrl C to copy and Ctrl X to cut and Ctrl V to paste are ancient!!!!!! ...
    (microsoft.public.frontpage)
  • Re: [PHP] why is not highlighted
    ... Here is the offending code (abbreviated) ... I have data series which have a location specified. ... not highlight. ... PHP General Mailing List ...
    (php.general)