Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("tr").click(function() {
- if ($( this ).hasClass("")) {
- $("tbody").on("click", "tr", function () {
- $(this).css("background-color", "#FE5253");
- $(this).addClass("selectedTb");
- });
- }
- });
- $("tr").click(function() {
- if ($( this ).hasClass("selectedTb")) {
- $("tbody").on("click", "tr", function () {
- $(this).css("background-color", "white");
- $(this).removeClass("selectedTb");
- });
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement