Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Select List Option Value Dropping a Character

 
Ranch Hand
Posts: 2025
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: 67424
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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: 2025
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: 67424
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • 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: 2025
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: 2025
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.

 
Water proof donuts! Eat them while reading this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic