• Post Reply Bookmark Topic Watch Topic
  • New Topic

Removing quotes from selection from drop down menu????  RSS feed

 
Moined Mogul
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can I take a string that is selected from a drop down menu and check to see if it has double quotes around it, if it does, then remove the quotes and submit the new string without quotes instead of the one selected?
Please help....urgent!!!
 
Brian Nice
Ranch Hand
Posts: 195
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if you are submitting the form to a JSP or servlet, just do it there. Take the string you get from the request.getParameter("") and use the replace method on it to replace the quotes with ''
Brian
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!