[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 wrote: > On Mar 24, 2009, at 11:44 AM, rivkadr wrote: > > > > > The add table row is being added with: > > > Add > > New

[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: Add New 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 it work? ;) umm. because it worked fine for me, as I alread

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

2009-03-24 Thread rivkadr
The add table row is being added with: Add New 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 changing -- if you read what I wrote, I mentioned that I can see i

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

2009-03-24 Thread Karl Swedberg
Hi again, I don't see where you're actually calling the addTableRow function. Also, did you look at the demo I put together for you? Did that one work for you? Sometimes it helps to start simple and build up in order to see where the problem is occurring. Which browser are you testing in?

[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: http://www.isocra.com/2008/02/table-

[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