[Javascript] two submit buttons in a form ??

Selvaraj, Murugan (Indsys) Murugan.Selvaraj at geind.ge.com
Fri May 17 00:33:33 CDT 2002


Dijam

If you are using the single form, you can't perform the action on the two
different submit button.
If you still want to use the the single form,assign the form action to the
checkin submit button.
To perfome the action in the checkout , use the javascript to call the
action.
The following is the exapmle,

<html>

<head>

<script>
function checkout()
{
document.test.action="go.jsp";
document.test.submit();
}

</script>
</haead>

<body>

<form name="test" method="post" action="jsk.jsp">

<input  type = "submit" name ="checkin" value="checkin">

<input  type = "submit" name ="checkout" value="checkout"
onlick="checkout();">

</form>

<body>

</html>


-----Original Message-----
From: Dijam majiD [mailto:yna54 at hotmail.com]
Sent: Friday, May 17, 2002 12:16 AM
To: javascript at LaTech.edu
Subject: [Javascript] two submit buttons in a form ??



Hi,

I have a form in a jsp file that has :

1)Drop down list (for names)
2)textarea  ( for comment)


I want to have two submit buttons (chekin, checkout), who to do it please ?
thanks



_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com

_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
https://lists.LaTech.edu/mailman/listinfo/javascript


"THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE and may contain confidential and privileged information.
If the reader of this message is not the intended recipient,
you are notified that any dissemination, distribution or copy of this 
communication is strictly Prohibited. 
If you have received this message by error, please notify us 
immediately, return the original mail to the sender and delete the 
message from your system."




More information about the Javascript mailing list