/    Sign up×
Community /Pin to ProfileBookmark

dropdown list submit problem

I have a drop down list in a form and set the form action to my
database results page. I use a Onchange event that uses the form name and is added to the select tag. When I select a choice from the list, the selected
option will be submitted to a form handler when a selection is made
automatically and its will display data in text box also. This selection is success, but got one problem is i have many drop down list in the form, when i use the onchange event to make selection, the other textbox value will disappear and i need to input again…how to solve this problem??? 😮

*****i use this script******
function combo_onchange() {
frmSelect.submit();
}

<body>
<form name=”frmSelect” method=”Post”></form>
</body>

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@A1ien51Mar 31.2005 — You are going to have to develop a function that remembers the values and reslects them.

Are these dropdowns hardcoded into the HTML or are they created on the server?

Eric
×

Success!

Help @fyanym spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...