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

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

dmjpro
100+
P: 2,476
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
Share this Question
Share on Google+
3 Replies


Expert 100+
P: 1,892
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
Expert 2.5K+
P: 4,059
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
100+
P: 2,476
both of u thanxxxx
Apr 7 '07 #4

Post your reply

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