Re: [jQuery] Cloning a table row that is not in a table

2010-01-13 Thread Nathan Klatt
On Wed, Jan 13, 2010 at 9:15 AM, RhythmicDevil wrote: > So it seems I can only select a row if its in a table? That makes no > sense? Makes perfect sense; a table row cannot exist outside of a table. Nathan

[jQuery] Cloning a table row that is not in a table

2010-01-13 Thread RhythmicDevil
The scenario. I have a table with form inputs. I want to clone the row to provide another row of inputs to the user. How I plan to do it. I start the table with one row. I also place a copy of that row inside a hidden div on the page. When the user clicks a button I clone and append the row from t

[jQuery] Cloning a table row and changing its form field IDs

2009-10-27 Thread Matt
Hi everyone. I'm writing a dynamic form that allows users to add fields. These fields are contained in a table. I have this function to clone the rows (my table has an ID of EventType) function addEventType() { var clonedRow = $("#EventType tr:last").clone(); $("input", clonedR

[jQuery] Cloning a table row.

2008-09-01 Thread Adam Asham
Hello I am new to jquery I have a problem with cloning a table row. It gets messed up if the method is called more than once. The information is added several times in a row. The html-code is merely used as markup, template information in this case. all content is added through jquery and it's

[jQuery] Cloning a table row.

2008-09-01 Thread Adam Asham
Cloning a table row. Hello I am new to jquery I have a problem with cloning a table row. It gets messed up if the method is called more than once. The information is added several times in a row. The html-code is merely used as markup, template information in this case. all content is added th