Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa HTML html button
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


jhansi.puvvala
html button
1 Answer(s)      a year and 3 months ago
Posted in : HTML


when i click the submit button the entered data will be displayed below the submit button please help me


Advertisement
View Answers

July 16, 2013 at 3:01 PM


Please go through the link, may this will be helpful for you.

How to display user entered information using HTML and JavaScript.

Example:-

        <html>
        <head>
        <script>
        function display()
        {
        document.getElementById("displayarea").innerHTML = document.getElementById("fname").value;    
        document.getElementById("fname").value = "";
        document.getElementById("displayarea1").innerHTML = document.getElementById("lname").value;    
        document.getElementById("lname").value = "";

        }
        </script>
        </head>

        <body>
        <table bgcolor="#FF00FF" border="1" align="center">
        <tr>
        <td>FirstNames</td>
        <td><input type="text" name="fname" id="fname"></td>
        </tr>
        <tr>
        <td>LastName</td>
        <td><input type="text" name=lname" id="lname"></td>
        </tr>

        <tr>
        <td> </td>
        <td align="center"><input type="button" value="Submit" name="submit" id="submit" onClick="display()"/></td>
        </tr>
        </table>
        <table width="400px" align="center" border=0> 

            <tr style="background-color:#8FBC8F;">
                <td align="center"><b>Fast Name</b></td>
                <td align="center"><b>Last Name</b></td>
                </tr> 
                <tr>
                <td align="center"><div id="displayarea"></div></td>
                <td align="center"><div id="displayarea1"></div></td>
                </tr>
            </table>
        </body>
        </html>


Related Tutorials/Questions & Answers:
html button
html button  when i click the submit button the entered data will be displayed below the submit button please help me
facebook login button html
facebook login button html  facebook login button html i have a facebook login button code ..but not sure how to use it. Can any one please explain? Here is the facebook login button code in html <fb:login-button
Advertisements
create a button in html
create a button in html  How do I create a button which acts like a link
HTML Button onclick get ID of Button
HTML Button onclick get ID of Button  How i can get the ID of HTML Button on click?? I wanted to do it using JavaScript function. Thanks
Button Size HTML
HTML Button Size can be changed according to programmer use. HTML button... of a HTML button. First we create a HTML page. Then we display a HTML Button... and colour. HTML Button is very useful in taking the user action. On the button
Struts + HTML:Button not workin - Struts
Struts + HTML:Button not workin  Hi, I am new to struts. So pls... needs to be corrected. OR Should i use 2 HTML TAG BUTTON's here instead of 2... ----------- System.out.println(searchForm.get_button_Clicked()); The above statement
html menu button drop down
html menu button drop down  How to create a menu button in HTML?   <select id="category"> <option value="1">One</option> <option value="2">Two</option> </select> <select id
HTML Button Size
HTML Button Size       Button in HTML is used to submit HTML page. Understand with Example The Tutorial illustrate an example from HTML Button size. In this Tutorial we
Radio Button in HTML
Radio Button in HTML is a type of input form that allows a user to select one... Button in HTML: The use of a radio button is to allow a user to make one... Button in HTML: <!DOCTYPE html> <html> <head> <
How to change HTML button onclick to autoclick - javascript function
How to change HTML button onclick to autoclick - javascript function  Can any one give me a block of code to change the HTML button onclick to autoclick. The method must be in Java Javascript
How to change HTML button onclick to autoclick - javascript function
How to change HTML button onclick to autoclick - javascript function  Can any one give me a block of code to change the HTML button onclick to autoclick. The method must be in Java Javascript
Using a image for Browse button instead of normal html Browse button for Uploading files from a JSP - JSP-Servlet
Using a image for Browse button instead of normal html Browse button... a Upload button, when I upload the file selected, it gives me errors. Is it not possible to use a image instead of normal html Browse button for uploading files
PHP HTML Form Submit Button
Topic : HTML FORM SUBMIT BUTTON Part - 4 The another part which is important to covered that is Submit button. If you are following all the previous parts... we just need a Html Submit button. <input type="submit" name
find out in servlet which button was clicked on an html page
find out in servlet which button was clicked on an html page  i have... in a servlet on pressing of those 2 buttons.. how do i find out which button was clicked so...="theForm"> <INPUT TYPE="button" VALUE="Roseindia" onClick="submitFunction
HTML Get Radio Button
HTML Get Radio Button       HTML Get  method in HTML is used to send the data as part... in URL. Understand with Example The Tutorial illustrates an HTML Get Radio Button
HTML Post Radio Button
HTML Post Radio Button       HTML Post attribute used in method, when a user is not able.... The HTML page create a radio button, which allows the user to select any one
Button
Button  How to use image for button in JSF
Button text is not displaying properly in jre 1.6.0_22 when html tags are used in the textstring
Button text is not displaying properly in jre 1.6.0_22 when html tags are used in the textstring  using html string to jbutton text is not working in Java 1.6.0_22 when browser is using the existing java console this.setText
button
button  can i give multiple commands on click of a button? if yes how can i do that?? multiple commands can we retriving dat from database, capturing data, moving to next page.. etc
button
button  can i give multiple commands on click of a button? if yes how can i do that?? multiple commands can be retriving dat from database, capturing data, moving to next page.. etc
html
html  how we can give the form actions in html after register button in the login page
HTML
HTML  in html how can we can upload the file <tr> <...; </td> </tr> after this i want the upload button with form action when i click the upload button it wil goto some where to upload
Html
:48:44 PM Author : SAMSUNG --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01...; <head> <meta http-equiv="Content-Type" content="text/html
Html
:48:44 PM Author : SAMSUNG --%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01...; <head> <meta http-equiv="Content-Type" content="text/html
HTML
HTML  What is Semantic HTML? What are the reasons for validating a HTML
HTML
HTML  What is Semantic HTML? What are the reasons for validating a HTML
HTML
HTML  What is SPAN in HTML
html
html   HTML document with Javascript to count the number of vowels... is the code ..I hope this will solve your problems : <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE>
html
html  diffrence between html and xml
Html
Html  What is HTML? What is a Hypertext link
HTML
HTML  What is HTML? What is a Hypertext link
Advertisements
 

 

 

DMCA.com