This week's book giveaway is in the Go forum.
We're giving away four copies of Head First Go and have Jay McGavren on-line!
See this thread for details.
Win a copy of Head First Go this week in the Go forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

Select List Option Value Dropping a Character  RSS feed

 
Ranch Hand
Posts: 1931
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a select list with an option value of IV3-1/4"

But this code returns IV3-1/4

 
Marshal
Posts: 67243
170
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You know we need to see the code for your dropdown to help... (Bear gives his best Dad look)
 
Steve Dyke
Ranch Hand
Posts: 1931
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Bear Bibeault wrote:You know we need to see the code for your dropdown to help... (Bear gives his best Dad look)



 
Bear Bibeault
Marshal
Posts: 67243
170
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JSP source is, er, uninteresting unrevealing. Inspect the option elements in the browser Dev Tools to see what actually ended up as the options' values.
 
Steve Dyke
Ranch Hand
Posts: 1931
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Bear Bibeault wrote:The JSP source is, er, uninteresting unrevealing. Inspect the option elements in the browser Dev Tools to see what actually ended up as the options' values.



This is the browser dom out put when viewing with the Dev Tools.

It looks like the double quote is being separated from the rest of the value.

 
Steve Dyke
Ranch Hand
Posts: 1931
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Bear Bibeault wrote:The JSP source is, er, uninteresting unrevealing. Inspect the option elements in the browser Dev Tools to see what actually ended up as the options' values.



Found this and is seems to work. Thanks for heading me in the right direction.

 
Poop goes in a willow feeder. Wipe with this tiny ad:
ScroogeXHTML 8.2 - easy to use RTF to HTML converter library
https://coderanch.com/t/707504/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!