468,237 Members | 2,001 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,237 developers. It's quick & easy.

What is the difference between a List Box and Combo Box?

dmjpro
2,476 2GB
at first let me clearify ....
these (Combo BOX + List BOX) r two different components in html page?????

i know how to develope combo box... but list boxxxxxx??????

plz help me .......thanxxx in advance
Apr 6 '07 #1
3 42847
AricC
1,892 Expert 1GB
at first let me clearify ....
these (Combo BOX + List BOX) r two different components in html page?????

i know how to develope combo box... but list boxxxxxx??????

plz help me .......thanxxx in advance
DMJ,
I edited your thread title to be more descriptive. Also, I've put together an example to show you the difference, essentially you use the same tag.
[html]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>List Box/Combo Box Example</title>
<style type="text/css">

</head>
<body>
<h1>List Box</h1>
<select size="4">
<option>Item 1</option>
<option>Item 2</option>
<option>Item 3</option>
<option>Item 4</option>
<option>Item 5</option>
<option>Item 6</option>
<option>Item 7</option>
<option>Item 8</option>
<option>Item 9</option>
</select>
<br />
<h1>Combo Box</h1>
<select size="1">
<option>Item 1</option>
<option>Item 2</option>
<option>Item 3</option>
<option>Item 4</option>
<option>Item 5</option>
<option>Item 6</option>
<option>Item 7</option>
<option>Item 8</option>
<option>Item 9</option>
</select>
</body>
</html>
[/html]
Apr 6 '07 #2
KevinADC
4,059 Expert 2GB
AricC probably figured out your question, but it's confusing because list box and combo box are not html form widgets at all, they are sort of slang terms used to describe the SELECT widget, or select menu. The attribute that allows a user to select more than one thing from the list is MULTIPLE

<select size=3 multiple>

but the sever side form processing script has to be able to process multi-valued form field data, other wise you get only one value anyway. Most good form processor scripts know how to do that, but if you are writing your own script you need to be aware of that.
Apr 6 '07 #3
dmjpro
2,476 2GB
both of u thanxxxx
Apr 7 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by diadia | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.