Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

adding 'option' into 'select'...

 
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
Pie
Posts: 64713
86
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