Opened 10 years ago
Closed 10 years ago
#12872 closed bug (notabug)
Error on tr:last click after append
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.8.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
<table id="activeTbl">
<tr><td><input type="text"/></td></tr> <tr><td><input type="text"/></td></tr>
</table> <script>
$("#activeTbl tr:last").click(function(){
$("#activeTbl").append('<tr><td><input type="text"</td></tr>');
});
</script>
I applied above code to append a row each time the last tr is clicked but it doesn't work. Row gets appended only when default last row is clicked. Is there any wrong in my code or its a bug of jquery?
Note: See
TracTickets for help on using
tickets.
Please ask for help on the forum, this is not a bug.