Win a copy of Grokking Bitcoin this week in the Cloud/Virtualization 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
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
Bartenders:
  • Carey Brown
  • salvin francis
  • Claude Moore

Select List Option Value Dropping a Character  RSS feed

 
Ranch Hand
Posts: 1932
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: 67256
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: 1932
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: 67256
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: 1932
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: 1932
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.

 
Beauty is in the eye of the tiny ad.
Create Edit Print & Convert PDF Using Free API with Java
https://coderanch.com/wiki/703735/Create-Convert-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!