This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

after space remaing string is not displayed

 
riaz mahsha mohamed
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
 
David Newton
Author
Rancher
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









 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65115
89
IntelliJ IDE Java jQuery Mac Mac OS X
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic