• 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
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

after space remaing string is not displayed

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi i am new to this forum can any one help me!!!

my code is that i am getting values from from DB and display values dynamically in the drop down box.I use Jquery function
( $('#locations').change(function(){.......... ) to select the drop item and after selecting the value i get only the value before the space and the value after space is not displayed. for ex: floor 1 i select and i get only " floor " and not space and 1.
what wil be the mistake i have done .. please help me.

thanks in advance
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch!

Without the code and rendered HTML it's impossible to help. It's always important to TellTheDetails -- the ItDoesntWorkIsUseless FAQ entry provides further information.
 
riaz mahsha mohamed
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oh sorry , i new to this forums and i am not having the any posting experiences.

---------------------------------------------------------------------------------------------------------------------------------------------------

for ex: ------select category-----
| main block |
| block 1 |
| block 2 |
----------------------

// when i select the category i dynamically takes value from DB
//and populates the floor drop down box
ex: ---------select floor------
// | floor 1 |
// | floor 2 |
-------------------------
// see floor 1 floor 2 are with spaces it is correctly displayed


// problem is that when try to select the required floor for ex: floor 1
// only " floor" is displayed space 1 is not displayed .
// what my code is that by taking the "category" and "floor" i will display
// another list of values in another text box.






---------------------------------------------------------------------------------------------------------------------------------------------------
No problem in DB , issue is Jsp page. Please i couldn't able to solve this issue for past 1 day please help me out of it!!!

thank you
Riaz Mohamed









 
Marshal
Posts: 67275
170
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please be sure to use code tags when posting code to the forums. Unformatted or unindented code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please click this link ⇒ UseCodeTags ⇐ for more information.

Properly indented and formatted code greatly increases the probability that your question will get quicker, better answers.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!