• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to fetch values of elements on same page

 
Nishant Vashisth
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
guys i am trying to make a date system
in which when user selects year from a drop down list then according to the year selected the
month drop down list is activated
then if the month selected is a 31 days month then the disabled days drop down is activated with 31 days
or for February with 28 days or 29 days..

so how to get the value of the selection of the year and month on the same jsp page
so can you tell me
 
Arun Chidam
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can do it either through client side(java script) where you control months and days from the script or from server side where you can redirect to same JSP when user selects a particular month and populate the days as per the month selected, also look into AJAX ideal for loading only partial data.
 
Nishant Vashisth
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes but my course does not has javascript so can you tell me just HTML functions or normal java scriplets !! ???
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64618
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are no such things as "HTML functions".

The proper way to do this is with JavaScript on the page, Without that you are forced to re-write the entire page making the changes that are needed.
 
Nishant Vashisth
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bear Bibeault wrote:There are no such things as "HTML functions".

The proper way to do this is with JavaScript on the page, Without that you are forced to re-write the entire page making the changes that are needed.


ya my bad. I am not aware with the terms much. :P

still isn't there another way using java but not the javascripts.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64618
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I repeat:
Bear Bibeault wrote:you are forced to re-write the entire page making the changes that are needed.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic