This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes select a value from dropdown list at the time of onloading the page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "select a value from dropdown list at the time of onloading the page" Watch "select a value from dropdown list at the time of onloading the page" New topic
Author

select a value from dropdown list at the time of onloading the page

Ganeshkumar cheekati
Ranch Hand

Joined: Oct 13, 2008
Posts: 362
This is my html and javascript code.....


If user change the selection from dropdown list then only function can be executed.. but my requirement is at the time of loading this page default value from list has to be submitted to my jsp page.......?
Can any one give me solution asap? its so urgent....
Thanks in advance...



SCJP5 and SCWCD1.5
Think Twice Act Wise...
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Please read this EaseUp

Eric
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You want to submit the form on page load? why in the world is the server serving up the page to begin with if that is the case?

Sounds like you want to use window.onload

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: select a value from dropdown list at the time of onloading the page
 
Similar Threads
Generating chained dynamic dropdowns using JSP/Servlet and AJAX
correct Ajax script syntax for second DropDown
passing two arrays to Javascript function
calling function on the basis of option value?
Is it not possibel to do this in JSTL