Register  |  Login


Question

Status: Closed Points: 25 Time: 06:24 - Sep 27, 2007  

shashi.programmer

how to create multiple browse row for upload

i have create a row in which 4 colum two of them is drop down one is date and last one is browse a file to upload. now i need that when i click a button this should add new row with same controls.

<table>
<tr>
<td><font size="1" face="Verdana, Arial, Helvetica, sans-serif">HSP</font></td>
<td>
<select name="hname">
<option value="">HSP</option>
</select>
</td>

<td> <font size="1" face="Verdana, Arial, Helvetica, sans-serif">Report Type: </font></td>
<td>
<select name="rname1">
<option value="">Report Type</option>
</select>
</td>


<td> <font size="1" face="Verdana, Arial, Helvetica, sans-serif">Date of Report: </font></td>
<td> <font size="1" face="Verdana, Arial, Helvetica, sans-serif">Upload File: </font></td>
<td><input name="uploaded" type="file" /></td>
<td><input name="add" type="submit" value="Add New Record" /></td>
</tr>
</table>


on click over add new record button the complete table should be created in second row

thanks & regards
Shashidhar Kumar

Categories:

Answer Discussion
Answer Summaries

 

Q&A System for Websites and Corporate Collaboration

Advertisement

  • Generates significant organic traffic for websites
  • Saves companies money, resources, and time

jgivoni

Date:: Oct 19, 2007

Time:: 11:42

You could try something like this:

Change the first lines to:
<table>
<tr id="record">
...

Change the button to:
<input name="add" type="button" value="Add New Record" onclick="addNewRecord()"/>

Add this javascript function somewhere:

function addNewRecord()
{
 var record = document.getElementById("record");
 var no = record.childNodes.length;
 var newRecord = record.cloneNode(true);
 newRecord.id = "record" + no;
 newRecord.value = "";
 newRecord.name = "uploaded" + no;
 record.parentNode.appendChild(newRecord);
}

shashi.programmer

Date:: Oct 29, 2007

Time:: 23:35

not sufficient

shashi.programmer

Date:: Oct 29, 2007

Time:: 23:36

i have done it

jgivoni

Date:: Oct 30, 2007

Time:: 01:57

What? You need more help? If so please specify.

internisti007

Date:: Dec 13, 2007

Time:: 21:22

It's cool. Btw,how delete record with on click

Question Answered

This question has been closed, and points have been rewarded to the following experts:

jgivoni: 10
shashi.programmer: 15

You're welcome however to comment or give additional information or if you wish, you have the ability to write an Answer Summary for the Summary Area.

Answer this Question

New User

Email:

Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address

Registered User

Username:

Password:

Forgot Your Password?

No summaries have been submitted yet. Want to be the first?

Answer this Question

New User

Email:

Upon submission of this form, you will automatically be registered as a Quomon user and we will send your login information to this address

Registered User

Username:

Password:

Forgot Your Password?

Ask a Question

Have a new question? Ask!

You have 100 characters to use


Top HTML Experts

View More

Rank

Expert

Points

1.

jgivoni

10

Become an Expert

Register today to share your knowledge with the community and be recognized and rewarded for your contributions.


Register Here




"Psst, Quomon is a great site. Pass it on."     Tell a Friend  |   Link To Us  |   Save to Delicious  |   Digg! Digg it



Language Options

English:

www.quomon.com

Español:

www.quomon.es