Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

textbox drop down

 
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a html page, in which I have a text box. When I double click on it, a drop down box, drops down. But I need to prevent it.
How do I do that?
 
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you don't want a drop-down, then don't put one on the page! What behaviour do you want ?
 
Bala Krishniah
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No, I mean, I am not putting a drop down list box.
I have a text box. Lets say I have a login screen where the userID (my textbox) and the password field is present. When ever a person enters his name and logs in his userID gets stored, and when some other person wants to log, and tries to enter his name in userID textbox drops down and shows the previously entered names. How do I prevent this.
Thanks
 
Ranch Hand
Posts: 3143
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That's a browser setting as far as I know ... i don't think you can prevent it programatically!
 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In IE you can turn this off by going into Tools->Internet Options and clicking on the Content Tab. Then under personal information (near the bottom) click on the Auto Complete button and uncheck the appropriate check boxes under Use Auto Complete for... in the dialog that pops up.
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
another doubt regarding drop down box..is it possible to set a font for just the items in the drop down box ? I tried this..it doesnt work..

any pointers, anybody..?
thanks in advance.
Vidya.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't think that can be done with the HTML <OPTION> element.
 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi, try this.
<html>
<body>
<style>
select{font-family: "Algerian"; }
select{text-face:bold;color:green;}
</style>
<form>
<select name=states><option>ar<option>MA<option>ct
</seelct>
</body>
</html>
hope it helps
sridevi

Originally posted by Vidya Sajeev:
[B]another doubt regarding drop down box..is it possible to set a font for just the items in the drop down box ? I tried this..it doesnt work..

any pointers, anybody..?
thanks in advance.
Vidya.[/B]


 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic