Append a table to a div then style it using css
I have this data i am getting from the database and creating a table out of it.
- $.get("getall.php", function(data){
- $(.tablebody').append(data);
- });
I am then trying to style it using css
- .current{background-color:pink;}
- $('tr:first-child').next().addClass("current");
The row isn't being given the background.