• Post Reply Bookmark Topic Watch Topic
  • New Topic

Select Option Value

 
Steve Dyke
Ranch Hand
Posts: 1716
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using the forEach jstl function to populate a select tag. The data strings I am using has double quotes in them. When the select talg is populated the option text looks fine(entire string) but the option value only has portion of string up to the first double quote.

Thanks for helping me with this issue.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65519
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at the generated HTML -- likely it's got quoting problems. You'll need to properly escape the inner quotes (or use different quotes for the delimiters).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!