how do I change pl/sql code to create a multi select instead of list box

sikyala
sikyala used Ask the Experts™
on
I have the following code:

htp.p('            <td valign="top" align="left">');
htp.p('            <div id="org_users2">');
htp.p('            <select  class="form_field_select_400" id="item_assigned_to_id2" name ="item_assigned_to_id2');
htp.p('             <option  />');
htp.p('              </select>');


I want to format the web application as a list box. How would I modify this code so that it appears as a list
Can I use <div class="listbox-area">
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Ryan ChongSoftware Team Lead
Commented:
try add size property there

htp.p('            <td valign="top" align="left">');
htp.p('            <div id="org_users2">');
htp.p('            <select  size='10' class="form_field_select_400" id="item_assigned_to_id2" name ="item_assigned_to_id2');
htp.p('             <option  />');
htp.p('              </select>');
Software Team Lead
Commented:
by the way, to allow multiple selection, try add multiple property.

htp.p('            <td valign="top" align="left">');
htp.p('            <div id="org_users2">');
htp.p('            <select size='10' multiple class="form_field_select_400" id="item_assigned_to_id2" name ="item_assigned_to_id2');
htp.p('             <option  />');
htp.p('              </select>');

https://www.w3schools.com/tags/tryit.asp?filename=tryhtml_select_multiple
Ryan ChongSoftware Team Lead

Commented:
do you need further clarification here?
Ryan ChongSoftware Team Lead

Commented:
as suggested.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial