• 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
Sheriffs:
  • Devaka Cooray
  • paul wheaton
  • Mark Herschberg
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
  • Jj Roberts
Bartenders:
  • Carey Brown
  • salvin francis
  • Piet Souris

depending on the value the required fields should come

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

i am having problem like if i select one value that value related fields should come and if i select another value other fields should be displayed in previous field space only.

pls help me...
 
author & internet detective
Posts: 40478
822
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Lalith,
You would need to write a Javascript method to do that. What do you have so far?
 
Sheriff
Posts: 67498
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by lalith kumar:
pls help me...


Please use real words when posting to the forums. Abbreviations such as "pls" in place of "please" only serve to make your posts more difficult to read and less likely to generate useful responses.

Please read this for more information.

thanks,
bear
JavaRanch sheriff
 
lalith kumar
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi Jeanne Boyarsky,

I tried that by using javascript. suppose if there are two text fields in our page. Depending on the value it has to display the text field. I am writing that code in javascript only i am hidding the unwanted text field. But problem is with space like in the first text box field place second one has to get replaced.

Thank you
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Why don't you show us what you have done so we can see what the problem is by giving us an example test case.

Eric
 
lalith kumar
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

suppose if there are three fields like date,venue and reason.These are included in jsp page like




And i have one select box as candidate status



if i select candidate status as attended means it has to display only two fields that is date and venue fields.

If i select candidatus as postponed means it has to display only reason field. This is working fine by using javascript code:



But the problem is when i select candidate status as postponed it will display only the reason but gap is coming because we are hidding date and venue. I want to remove that space and reason should come in date field place. Is it possible.

Thanks in advance
 
Stop it! You're embarassing me! And you are embarrassing this tiny ad!
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic