javascript-html

javascript-html

View Answers

April 18, 2009 at 3:01 PM

Hi Friend,

Use the following code. It may be useful for you.

<html>
<head>
<script>
var numLinesAdded = 0
function generateRow() {
numLinesAdded=numLinesAdded+1;

var d=document.getElementById("div");
d.innerHTML+='<tr><td valign="bottom" >&nbsp;<input name="First_'+numLinesAdded+'" type="button" value="Add" ><input name="First_'+numLinesAdded+'" type="button" value="Remove" >&nbsp;</td><td valign="bottom" ><input name="Second__'+numLinesAdded+'" type="text" >&nbsp;</td><td valign="bottom" ><select name="Third__'+numLinesAdded+'"><option>India</option><option>Srilanka</option></select>&nbsp;</td></tr>';
}

function removeRow(){
document.getElementById('div').deleteRow(-1);
}
</script>
<body>
<form>

<table border=1 id="div">
<tr><td><input type="button" value="Add" onclick="generateRow()"/><input type="button" value="Remove" onclick="removeRow()"/></td><td><input type="text" name="text"/></td><td><select name="select"><option value="1">India</option><option value="2">Srilanka</option></select></td></tr>

</table>
</form>
</body>
</html>
Thanks









Related Tutorials/Questions & Answers:
javaScript+Html
javaScript+Html  print("code sample");(Use ExtJS 3 or 4) and create following (HTML, Javascript,ExtJS) a. Create a single page application divided into 4 sections - Top Header, Footer,Left Navigation (Tree), Center Panel
javascript-html - JSP-Servlet
javascript-html  i want to dynamically create textfield with option button as another/remove when user presses in jsp page which will be in table.for example table contains one row with 2 columns,one textfield,second dropdown
Advertisements
javascript-html - JSP-Servlet
javascript-html  i want to dynamically create textfield with option button as another/remove when user presses in jsp page which will be in table.for example table contains one row with 2 columns,one textfield,second dropdown
php,javascript,html
php,javascript,html  Hi, thank u for answered the previous question. one more question: when i register the student details, unique register number should be created and incresed automatically for every student based
how to pass form values from javascript of html page to jsp page
how to pass form values from javascript of html page to jsp page   This is my sample html page which contains inline javascript which calculates...=ABQIAAAA5yM-fP6TPUheIXxW3TxpVRRgJAR_YXLeqIBw9Qs7Dzlh-4wFexRUVFiN8RbSageQjhAggT3jom" type="text/javascript"><
flowcharts using javascript/HTML - Development process
flowcharts using javascript/HTML  Hi I want to create flowchart diagram using html/javascript.. is that possible.. please guide me Thanks!  Check this linkhttp://www.roseindia.net/jdbc/jdbc-driver-and-its-types.shtml
JavaScript clearTimeOut method
JavaScript clearTimeOut method       JavaScript's HTML DOM window object method.... In this section of JavaScript methods tutorials we will be able to clear the set time out
j2s
j2s       Java2Script (J2S) Pacemaker provides an Eclipse Java to JavaScript/HTML/CSS compiler plugin and an implementation of JavaScript version of Eclipse Standard Widget Toolkit (SWT
JavaScript createPopup method
JavaScript createPopup method       In our this part of JavaScript methods we will describe you how you can create a popup window by using the simple JavaScript in an HTML
Getting Started with jQuery
jQuery: jQuery:  jQuery is a JavaScript library which accentuates interaction between JavaScript and HTML. jQuery helps programmers to keep... of HTML DOM tree. You can use jQuery to handle events, perform animation, and add
Top 10 Web Development Languages
languages are very basic to be embraced by almost every developer like JavaScript or HTML , some are more specific to the developer's or designer's focus... programming languages like JavaScript are still most popular among variety of web
integrate javascript in php
integrate javascript in php  how to integrate javascript into html
JavaScript code - Java Beginners
JavaScript code  how to write the client side validation code in javascript for a html file having field userid & password
JAVA
JAVA  send me one example program by combining the Servlets, JavaScript,html,Jdbc in this take the fields as name,email,password.apply some conditions to email and password.then we are retrieve this from our database
Resize browser in flex
with JavaScript in the HTML wrapper: getURL('javascript:window.resizeTo(900,900
JavaScript
should use JavaScript? Thanks   Hi, JavaScript is scripting language that runs on browser. You have to embed JavaScript in HTML page. Please see JavaScript tutorial. Thanks
What is the best way to learn JavaScript?
you should have knowledge of HTML. You can embedded JavaScript in HTML page...What is the best way to learn JavaScript?  Hi, What is the best way to learn JavaScript? How I should learn JavaScript from scratch? Thanks  
What is the best way to learn JavaScript?
you should have knowledge of HTML. You can embedded JavaScript in HTML page...What is the best way to learn JavaScript?  Hi, What is the best way to learn JavaScript? How I should learn JavaScript from scratch? Thanks  
JavaScript where to place in HTML
JavaScript where to place in HTML   Where to place JavaScript code into HTML Code?   Placing JavaScript code into HTML Code In HTML.... See the example given below. Declaring JavaScript in HTML Head Tag <
Drop Down Reloads again in IE..How to prevent this?
? Its purely JavaScript and HTML page..Im not uing this concept in Java or any
Is JSP a client side scripting language?
are embedded in a website's HTML markup code, which is housed on the server... executed by a server whereas a client-side scripting runs on browsers. Javascript, HTML and CSS is an example of client side scripting. Most of the people get
Is JSP a client side scripting language?
are embedded in a website's HTML markup code, which is housed on the server... executed by a server whereas a client-side scripting runs on browsers. Javascript, HTML and CSS is an example of client side scripting. Most of the people get
Is JSP a client side scripting language?
are embedded in a website's HTML markup code, which is housed on the server... executed by a server whereas a client-side scripting runs on browsers. Javascript, HTML and CSS is an example of client side scripting. Most of the people get
JQuery
to know-what is jQuery ? How it is better than JavaScript ?   jQuery is a lightweight cross-browser JavaScript library that emphasizes interaction between JavaScript and HTML. Following things make it slightly better than
displaying section in the jsp based on the sected value in drop down - Java Beginners
Servlets Strust 2.0 JavaScript HTML XML JDBC...; Hi friend, drop dwon list using javaScript function
Is JSP a client side scripting language?
are embedded in a website's HTML markup code, which is housed on the server... executed by a server whereas a client-side scripting runs on browsers. Javascript, HTML and CSS is an example of client side scripting. Most of the people get
Where can I learn JavaScript
JavaScript and HTML for writing any web applications. Since you have already learned HTML and want to learn JavaScript then you can learn it. Learning JavaScript...Where can I learn JavaScript  Hi, I have HTML knowledge and now want
Dojo Tutorial
is actually based on JavaScript and HTML, so its easy to learn. You can learn... local storage Dojo DOM Dojo HTML and CSS Dojo Ajax
Learning JavaScript from beginning
Learning JavaScript from beginning  Hi, I want to learn HTML.... With an interface that looks and feels almost like an HTML programming language, JavaScript..., JavaScript, HTML and C code. Read Getting Started with JavaScript This tutorial
javascript - Java Beginners
javascript  hi im beginner,i have created form using javascript and html functionality is with every click of add button textbox shud get created,n with everyclick of delete buton the row shud get deleted tis is working fine
PHP jQuery Example
PHP jQuery Example jQuery:  jQuery is a JavaScript library which accentuates interaction between JavaScript and HTML. Main features of jQuery...;, success:function(data)ADS_TO_REPLACE_5 { $("#content").html(data
Open Source Dreamweaver
on JavaScript, HTML, and CSS languages, including your own JavaScript functions * Outliner that gives a snapshot view of your JavaScript, HTML, and CSS code structure... - licensed under the Eclipse Public License v1.0), JavaScript-focused IDE
Pop up on hover using jQuery plug in
;JavaScript library that emphasizes interaction between JavaScript and HTML .<... this text to any other website. PoponHover.html <!DOCTYPE html PUBLIC "...="text/html; charset=utf-8"> <script type="text
PHP E-Mail
example we use, PHP, JavaScript, and html scripts.ADS_TO_REPLACE_1 (Note: The given
HTML form example
HTML form example In this section we will develop HTML form example and show you how to performance form validation using JavaScript. The HTML <form>... and also validate it with the JavaScript. Here is the screen shot of the HTML form
HTML Editor Open Source
Wysiwyg HTML Editor IRIS is a javascript based WYSIWYG html editor.... This is the ONLY wysiwyg javascript html editor that can save to a hard-drive (that i know...HTML Editor Open Source Bluefish  HTML Editor Bluefish
Ajax Books
- Asynchronous JavaScript and XML - some books and resource links  These books... recommend the following book - Modern Web Design Using JavaScript and DOM by Stuart... chapters do a quick review of JavaScript, DOM, and XML coding. These refresher
PSD to HTML Conversion Services
of Cascading Style Sheets (CSS) and JavaScript, HTML stylises and adds dynamism...PSD to HTML Conversion Services - Rose India We at Rose India utilize latest technologies to convert PSD design into HTML format into various applications
JavaScript - JavaScript Tutorial
you can create a popup window by using the simple JavaScript in an HTML page... JavaScript's HTML DOM window object method clearTimeOut() method is used to stop... object.   JavaScript createAttribute method In the HTML JavaScript
Java Frameworks
an Eclipse Java to JavaScript/HTML/CSS compiler plugin and an implementation... HTML or JavaScript.    Google Web Toolkit... automatically generates HTML and Javascript.    DWR
Design, develop and test JSPs
JavaScript, HTML, or JSP tagging, including Java source code inside... and click Next. This model is only available for HTML... HTML declaration from the Encoding drop-down list. The default
HTML Layout
to add a script (e.g., javascript) to HTML which makes a web page more dynamic... javascript in details later in this tutorial. HTML Meta The Meta element... HTML Layout     
Ajax Tutorials
know about: JavaScript, HTML and XHTML, a bit of dynamic HTML, and even some DOM... Ajax, which consists of HTML, JavaScript? technology, DHTML, and DOM... for registering Ajax request handlers as well as HTML elements or JavaScript

Ads