java script text box

Ads
 

java script text box

hi,

I created a button when i click on button(next/prev) new two textbox is created. i want to do the two textbox will show by next and prev button. when i click the next button only two textbox show same way prev button. dont add two textbox two by two,and i want to do that when i will click submit button the text should be submitted(it shows the value in alert). i also want the text box should generate in front of NEW button(next/prev) and after it submits it should show before the NEW line.dont add again two box

please help me......very urgent.

this is my code:

<html>
<head>
<script>
function generatenew()
{
var d=document.getElementById("div");
d.innerHTML+="<p><input type='text' name='name[]'>";
d.innerHTML+="<p><input type='text' name='topic[]'>";
}
</script>
</head>
<body>
<form name='abc' method="post" action="">
<div id="div"></div>
<b><font color="red"> 
<font size="4">New</font></font></b>
<input type="button"  value="prev" onclick="generatenew()">  
<input type="button"  value="next" onclick="generatenew()">  
</form>
</body>
</html>
View Answers

Ads









Related Tutorials/Questions & Answers:
java script text box
java script text box  hi, I created a button when i click... will click submit button the text should be submitted(it shows the value in alert). i also want the text box should generate in front of NEW button(next/prev
List the names of classes used to create button and text box in Java.
List the names of classes used to create button and text box in Java.  List the names of classes used to create button and text box in Java
Advertisements
select box and text box validations
select box and text box validations  hi, any one please tell me how to set validations for select box and text boxes using bean classes? thank you   Please visit the following link: http://www.roseindia.net/jsp/user
Text box Checking
Text box Checking  I want to Write only the word A-Z in a text box What is the code
java script
java script  how to write a Java script program to enter number in two text fields and then automatically display the total in another text field
java script
to first text box,second text box, ........up to last text box(whole days...java script  hi deepak, i have small doubt in the date ranges that when i select the date range then it display on the text boxes. example:suppose i
Java Script.
Java Script.  Hi Sir, The below java script code is not working in Google chrome can yo give me the solution as soon as possible. <script type="text/javascript"> function setValue(){ var val=""; var frm
Java Script.
Java Script.  Hi Sir, The below java script code is not working in Google chrome can yo give me the solution as soon as possible. <script type="text/javascript"> function setValue(){ var val=""; var frm
Java Script.
Java Script.  Hi Sir, The below java script code is not working in Google chrome can yo give me the solution as soon as possible. <script type="text/javascript"> function setValue(){ var val=""; var frm
Java Script.
Java Script.  Hi Sir, The below java script code is not working in Google chrome can yo give me the solution as soon as possible. <script type="text/javascript"> function setValue(){ var val=""; var frm
Java script
Java script  Source code for capturing the screen using Java Script
Java Script
Java Script  why we are using java script
java script to replace words starting and ending with tild(~) symbol in a text area with the word highlighted yellow.
java script to replace words starting and ending with tild(~) symbol in a text... with highlighted text. for example: The script should findout all the occurence of the words... with highlighting text in a text area. I am designing a page to send email. currently
Java Script.
Java Script.  The below code is nit working in Google chrome can any one tell me the solution as soon as possible. <script type="text...="checkboxname" value="tea" onclick="setValue();"> <input type="text" name
Java Script
Java Script  Hi, Any one please share a code to swap the 2strings using java script
form to java script conversion
form to java script conversion  I am using a form one more form cotain a piece of code . how to convert it to java script to function it properly..." name="ie" value="UTF-8" /> <input type="text" name="q" size="55" />
enable text box and label on selection
enable text box and label on selection  hello, Please tell me how to enable label and text box on selection of drop down list box. in drop down list box all values come from database. please reply
Java Script
Java Script  What is Java Script? How to learn Java Script?   Hi Java Script is client side programming language. It runs on browser.... You can learn Java Script from our JavaScript - JavaScript Tutorial pages
Text box control--keypress event
Text box control--keypress event  In my form have a text box...My requirement is... when is type characters in that box... before typing the 3rd character the space should come automatically or programmatically...the sturucture
java script
java script  Hi, Any one please tell me how, to store below elements in an array using java script 12,13,14,a,b,xyz
Java script
Java script  a java script code for accept 10 numbers from the user and print in the descending order without using sort method
java script
java script  how will you identify whether the number entered... digit or two digit number.   <HTML> <HEAD> <SCRIPT LANGUAGE="JavaScript"> function getvalue(){ var v=document.getElementById("text
enable text box
enable text box  Dear all I would like to enable a textbox by clicking on a button. pleas ehelp me out how can i do this regards JV
Drag a Text Box into dynamic positions
Drag a Text Box into dynamic positions  Plz can anyone tell how can i drag a text box using mouse or arrow keys... Im doing a accounts projects and i need this feature for cheque configuration
Java Script
Java Script  I want to display an error message for the validation of email at the top of the page in red font i want to use java scripts but i dont want to use alert box what i need to do   <html> <script>
How to assign a default value to text box in netbeans
How to assign a default value to text box in netbeans  I have a java application,and i want to assign a default variable to the textbox
Java Script
Java Script  Hello Sir, Is it possible to select only current date from datetimepicker in struts2 through java script validation. Means when i select.... Try to send me java script validation code for this purpose that user won't
java script
java script  write a java script code which provide a menu for user...; <td><input type="text" name="text1"></td> </tr> <tr> <td>Enter Second Number:</td> <td><input type="text
Java Script.
Java Script.  Hi i want to submit two form using javascript.The below code submitting two forms in server but its not working in browser like chrome and firefox am struggling for many days give me solution as soon as possible
how to create a text box using awt
how to create a text box using awt  give an example how creat multi buttons & text boxes
java script
java script  when you click a button how will you change the background color of a web page

Ads