This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

adding 'option' into 'select'...  RSS feed

 
ankur rathi
Ranch Hand
Posts: 3830
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How is this way of adding options into select (dropdown list)?



I think, this can't not be called 'no scriptlet' code. We have just changed the position of code (moved code in script from scriptlet). I don't think, a good idea.

What's your opinion?

Thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65825
134
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree. Why use scritplet code to create JavaScript that will populate the options on the client when you can just populate the options directly on the server?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!