I have the following code and I want to be able to select multiple options when with a shift button. The following code displays a list of items in a drop down option menu: I have a table in the DB that have alist of books, so Iam populating the drop down menu with the table's data.
<select name="getfromall" id="getfromall" style="width:16em onChange=getBooks();">
<option value="All"><%=msg.getString("All Books")%></option>
<%
java.util.ArrayList allBooks = Library.AddBook.getBookList("%");
for(int i=0;i<allBooksl.size();i++)
{
%>
<option value="<%=((String[])allBooks.get(i))[0]%>"
<%
if( (getfromall1).equals(((String[])allBooks.get(i))[0]) )
out.print("selected");%>>
<%=((String[])allBooks.get(i))[1]%>
</options>
<%
}//end if
%>
</select>