[jQuery] Re: Changing the ID of a cloned table row

2009-03-24 Thread rivkadr
The add table row is being added with: pa href=# onclick=addTableRow('#table-1'); return false;Add New/a/p No, your code does not work for me. It's exactly the same as the code I've been trying since last night, so no offense -- why would it work? ;) My problem here is that the id is not

[jQuery] Re: Changing the ID of a cloned table row

2009-03-24 Thread Karl Swedberg
On Mar 24, 2009, at 11:44 AM, rivkadr wrote: The add table row is being added with: pa href=# onclick=addTableRow('#table-1'); return false;Add New/a/p ok. No, your code does not work for me. It's exactly the same as the code I've been trying since last night, so no offense -- why would

[jQuery] Re: Changing the ID of a cloned table row

2009-03-24 Thread Eric Garside
Do you have a live example of the code? Karl's stuff works fine for me, so I suspect it has something to do with other scripts on your page. On Mar 24, 12:56 pm, Karl Swedberg k...@englishrules.com wrote: On Mar 24, 2009, at 11:44 AM, rivkadr wrote: The add table row is being added with:

[jQuery] Re: Changing the ID of a cloned table row

2009-03-23 Thread Karl Swedberg
A few things: 1. Why do you need return true in the function? 2. 13 is not a valid ID, 3. you should probably be appending the row to a tbody, not the table. Nevertheless, I just tried your first function and it seemed to work fine for me: http://jsbin.com/ideju/edit Does that work for

[jQuery] Re: Changing the ID of a cloned table row

2009-03-23 Thread rivkadr
I don't know why I need true in the function. I just copied the code from elsewhere ;) I am NOT a jquery (this is my first time using it) or JS expert, so am just trying to cobble something together for a work project, which is due by tomorrow. I'm using this: