This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Problem in form submitting. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Problem in form submitting." Watch "Problem in form submitting." New topic

Problem in form submitting.

prasad kulkarni
Ranch Hand

Joined: Mar 19, 2006
Posts: 66
I have a form which has one dropDown. There are 2 table-rows ( i.e. <tr> >
which I am loading on the change of drop down value.
After selecting the value '1' in drop down , the CASE_ONE tr is loaded, and when I hit the ENTER key, the form is submitted. This is perfectly fine.

Now when I selects the value '2' from dropdown, tr CASE_TWO is loaded and at this time, if I hit the ENTER key , the form is not getting submitted.

If I alter the positions of the trs CASE_ONE and CASE_TWO, the tr, placed earlier in the code works fine after hitting the ENTER key, but the other tr does not work properly.

Here is my code. Please help me to get out of this.

[ February 15, 2008: Message edited by: prasad kulkarni ]

scjp, scwcd
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63873

Please be sure to use UBB code tags when posting code to the forums. Unformatted code is extermely hard to read and many people that might be able to help you will just move along. Please read this for more information.

You can go back and change your post to add code tags by clicking the .

[Asking smart questions] [About Bear] [Books by Bear]
Alaa Nassef
Ranch Hand

Joined: Jan 28, 2008
Posts: 471

Well, I believe that hitting enter is like clicking on the first submit button, so when you hide it, I believe that hitting enter will do nothing, since the first submit button is hidden.

Well, I'm not hundred percent sure, but I believe that this is the case.

Visit my blog:
I agree. Here's the link:
subject: Problem in form submitting.
It's not a secret anymore!