Added dirocty from javascript to jquery
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
//will wait until page ready
|
||||
$(document).ready(function() {
|
||||
/*when table header is clicked , removes selection class from all other table rows and
|
||||
adds the selection class to this table headers row only*/
|
||||
$("th").click(function(){
|
||||
$("tr").children().removeClass("selection");
|
||||
$(this).siblings().addClass("selection");
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user