User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the HTML and CSS section within the Web Development category of DaniWeb, a massive community of 402,918 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,222 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our HTML and CSS advertiser: Lunarpages Web Hosting
Views: 8355 | Replies: 13
Reply
Join Date: Oct 2007
Posts: 1
Reputation: emsee is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
emsee emsee is offline Offline
Newbie Poster

Re: default "selected" option in firefox not working

  #11  
Oct 23rd, 2007
Originally Posted by nathanpacker View Post
Ok, I just tried it again. And I realized when I said it was working before, it was because I was simply refreshing the page, but apparently Firefox retains all the information, so it didn't matter what had "selected" in the script, it was just selecting the one that was previously selected.

So I closed the window, opened a new one, and realized it wasn't working with just "selected" in the script. When i changed it to selected="yes", it worked.
Thanks.


do it like this: <option selected=true blsa sldfsmdkask></option>
this will work, in ff2.0 and ie7 (thats what i have)
Reply With Quote  
Join Date: May 2005
Posts: 2
Reputation: T2DMan is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
T2DMan T2DMan is offline Offline
Newbie Poster

Re: default "selected" option in firefox not working

  #12  
Jul 16th, 2008
I have the same problem of firefox remembering the previous setting. And yes, I see where that is able to be disabled in the firefox options.

selected="yes" is not valid xhtml, should be selected="selected"

The autocomplete="off" does not even work

I am using the autocomplete in the <form > to try and disable for a drop down menu.

Any other ideas?
Reply With Quote  
Join Date: Jan 2007
Posts: 2,537
Reputation: MidiMagic is on a distinguished road 
Rep Power: 7
Solved Threads: 111
MidiMagic's Avatar
MidiMagic MidiMagic is offline Offline
Posting Maven

Re: default "selected" option in firefox not working

  #13  
Jul 17th, 2008
The quotes must be there in XHTML. It must be in the selected="selected" form, not the selected=selected form.
Daylight-saving time uses more gasoline
Reply With Quote  
Join Date: May 2005
Posts: 2
Reputation: T2DMan is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
T2DMan T2DMan is offline Offline
Newbie Poster

Re: default "selected" option in firefox not working

  #14  
Jul 18th, 2008
Found out that there was some javascript being used to override the settings. Bugfixing someone elses code, sometimes things are a little hidden.

Now working perfectly.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb HTML and CSS Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the HTML and CSS Forum

All times are GMT -4. The time now is 4:15 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC