tags:

views:

36

answers:

1

the newly inserted rows just showed for 2 secs.then disappeared...

$item = $( "<tr><td><input type=\"text\" class=\"inputBig\" /></td>"+ 
               "<td><input type=\"checkbox\" checked=\"checked\" /></td></tr>");

$item.prependTo($("#tbodyPI")).show();
A: 

This code alone will not cause the row to disappear.

You have some other code which is removing it.

SLaks
I removed almost everything except a simple table on the page. but i still get the same behavior. any guess of what kind of code may remove it? thanks a lot!
Jnew dev
Can you show us a working demo?
SLaks
thanks. i found the problem. the button I click to add new row post back and refreshes the page. changed it to input type button and solve the problem.
Jnew dev
@Jnew: You can accept this answer by clicking the hollow check.
SLaks