By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,795 Members | 1,666 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,795 IT Pros & Developers. It's quick & easy.

VB6 Combo box text property equivalent in HTML Select control

P: n/a
Hi all,

Is there a way to display some text in html select control by default
which when the control is clicked, will not be listed in the drop down
that contains its options.

For example:
When I open a page, there is a combo box with "Select" displayed in
that. It looks like that item is selected. But when I click that combo
box, it does not list "Select" in the drop down. Instead it lists the
items to be selected.

I know that this can be achieved in vb6 using Text property of the
combo box control.
But is there a way to achieve the same with HTML controls?

Hope I am clear in explaining what I want to achieve.

Thanks,
Swapna.

Nov 13 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
In theory it is possible on client side with javascript. You need to work
out what event(s) to handle and to manipulate the item collection
programmatically.

Practically, it will be difficult unless you are already experienced in this
sort of tasks. I don't think it is worth the effort.

--
Eliyahu Goldin,
Software Developer
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
<sw*************@gmail.comwrote in message
news:11**********************@t8g2000prg.googlegro ups.com...
Hi all,

Is there a way to display some text in html select control by default
which when the control is clicked, will not be listed in the drop down
that contains its options.

For example:
When I open a page, there is a combo box with "Select" displayed in
that. It looks like that item is selected. But when I click that combo
box, it does not list "Select" in the drop down. Instead it lists the
items to be selected.

I know that this can be achieved in vb6 using Text property of the
combo box control.
But is there a way to achieve the same with HTML controls?

Hope I am clear in explaining what I want to achieve.

Thanks,
Swapna.

Nov 13 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.