Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Listbox displayed only as combobox

 
V Babu
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I need a listbox with four options displayed at once. My html code similar to one listed below, always shows up as a combobox on the emulator inspite of the size parameter being greater than one. Actually I am trying to build a app using JavaScript and Phonegap. Can someone guide how to get a listbox working on the emulator.

<select id="mySelect" size=4>
<option>Apple</option>
<option>Pear</option>
<option>Banana</option>
<option>Orange</option>
</select>

Thanks in advance
Venkatesh
 
Ankit Garg
Sheriff
Posts: 9579
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Babu welcome to javaranch.

Babu Carefully Choose One Forum when you start a topic. The Android forum is not the right place for HTML questions. I'll move this question for you...
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65335
97
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually this sounds like an issue with the Android emulator and is not a general HTML problem, so I've moved it back. Sorry for the whiplash.
 
V Babu
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Bear,
Thanks for the movement back. Probably I was not clear in the explanation. This code works fine on the desktop. I tried with Firefox and works as intended. The issue is only with the Android emulator(probably also with the device).

Thanks,
Venkatesh
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic