newcoder1010 Posted September 22, 2020 Share Posted September 22, 2020 (edited) Hello, I have a html table with no row class. <table> <tr></tr> data<tr> data</tr></table> How can I delete the last row? Unfortunately, I cant give row class at this point. Thanks! Edited September 22, 2020 by newcoder1010 Link to comment Share on other sites More sharing options...
dsonesuk Posted September 22, 2020 Share Posted September 22, 2020 (edited) table tr:last-child {display:none;} You can't remove, but only hide in css. Edited September 22, 2020 by dsonesuk Link to comment Share on other sites More sharing options...
newcoder1010 Posted September 22, 2020 Author Share Posted September 22, 2020 Thank you! It works. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now