$(document).ready(function() {
$("#sample tr").click(function() {
//change the background color to red before removing
$(this).css("background-color","#FF3700");
$(this).fadeOut(400, function(){
$(this).remove();
});
});
});
Code language: JavaScript (javascript)
In above code we have attached handler with all “tr” in “#sample” table. On click we are first changing the background of the row and then fade it out and remove it. This is such a simple task. Java URL Encoder/Decoder Example - In this tutorial we will see how to URL encode/decode…
Show Multiple Examples in OpenAPI - OpenAPI (aka Swagger) Specifications has become a defecto standard…
Local WordPress using Docker - Running a local WordPress development environment is crucial for testing…
1. JWT Token Overview JSON Web Token (JWT) is an open standard defines a compact…
GraphQL Subscription provides a great way of building real-time API. In this tutorial we will…
1. Overview Spring Boot Webflux DynamoDB Integration tests - In this tutorial we will see…
View Comments
i have done the similar thing:
http://sarfraznawaz.wordpress.com/2009/09/14/deleting-table-rows-using-jquery-and-php/
so cool. thanks so much
Nice Tutorial . .There's a similar Deletion via Ajax here :
http://youhack.me/2010/03/26/remove-data-in-a-div-after-successfully-deleted-using-jquery/
This one displays data in a tabular fashion using css and not
Interesting approach. Thanks.
Great.
Do you know how to remove rows by clicking it, which was just appended by:
$("#add_sample_item").click(function() {
$('#sample').append(' a b c ');
});
Thanks, Jorge
thanks for help me
how to insert the data in table answer display on a webpage
Thanks a lot to share............