Hello. I have a web page and i want user to be able to select multiple options. The problem is that when i write

<select name="aha">
<option value="hhh">HHH</option>
<option value="kkk">KKK</option>
<option value="ppp">PPP</option>

There is no problem in my JSP page.

But later when i try to write

<select multiple name="aha">
<option value="hhh">HHH</option>
<option value="kkk">KKK</option>
<option value="ppp">PPP</option>

I can't seem to see the list properly. I have 28 values in my list.

What might be my problem?

I took this example:

<select multiple="multiple">
  <option value="volvo">Volvo</option>
  <option value="saab">Saab</option>
  <option value="mercedes">Mercedes</option>
  <option value="audi">Audi</option>
</select>

From this site:
http://www.w3schools.com/tags/att_select_multiple.asp

try adding the parameter size

<select multiple="multiple" size="10" name="a">
<option value="1">1</option>
...
</select>

Your final file is HTML or XHTML?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.