This is a discussion on "submission of values" within the JavaScript Forum section. This forum, and the thread "submission of values are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
submission of values
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
submission of values
Hi I have a dropdown list of regions like abc,def,ghi,jkl
to submit those regions I am using follwing function using onchange event. problem-when user changes the value result comes.But In dropdown when user want result for current visible value no results(obviously because same value is used which was before clicking on dropdown). Now I wanna modify this function using if else like conditiion that if onchange happens value will be submitted else whatever value visible in jsp should be submitted.regionform where getter and setter property is set for form. <script language="javascript"> function submitRegion() { document.regionForm.submit(); } </script> |
|
|
|
|||
|
Re: submission of values
To be honest, it's difficult to understand what it is you actually want but I think what you want is following the submission, when the form is redisplayed, the selection box should show the value that was previously selected. If this is what you want, you are going to have to use scripting to add the 'selected' attribute to the <option> tag whose value was selected. |
![]() |
| Tags |
| submission, values |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Option values | AdINo | Web Page Design | 3 | Jul 6th, 2007 10:09 |
| Option values | AdINo | JavaScript Forum | 2 | Jul 5th, 2007 18:48 |
| Highest Values | robukni | PHP Forum | 6 | May 4th, 2007 11:33 |
| Setting Form Values to Previously Entered Values | masonbarge | PHP Forum | 6 | Oct 17th, 2006 17:36 |
| Assign string values to integer values of a session variable | Andy K | Classic ASP | 1 | Jul 13th, 2005 08:29 |