The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

> Textbox issue, text entered in textbox should be displayed in confirm() command
Abhijith
post Aug 12 2007, 02:44 PM
Post #1





Group: Members
Posts: 2
Joined: 12-August 07
Member No.: 3,545



Here's the code

QUOTE

<BODY>
<script LANGUAGE="JavaScript">
<!--
function myclick(){
confirm("Do you want to Submit"+ 'lname');
alert("Submitted");}
//-->
</SCRIPT>
First Name:
<INPUT TYPE="text" NAME="fname"><br>
Last Name:
<INPUT TYPE="text" NAME="lname"><br>
<INPUT TYPE="submit" value="Submit" onclick=myclick()>
</BODY>


In the confirm function I want to display both the First name and Last name... please help!!!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Posts in this topic
Abhijith   Textbox issue   Aug 12 2007, 02:44 PM
Abhijith   found the answer :) Thanks anyways!   Aug 12 2007, 03:09 PM


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 16th April 2024 - 06:44 AM