Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Can i use a Arraylist to populate a normal html selectBox options?  RSS feed

 
vishnu vyasan
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guys,


As the topic sujjests Can i use a Arraylist to populate a normal html selectBox options?

if so how can i do that?

Best regards
Vishnu
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure; why not? Loop over the list and create an option tag for each item.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!