Jump to content

Background-Color of a TD element disappear on click


RyanSchurton

Recommended Posts

<!doctype><html><head><meta charset="utf-8" /><script type="text/javascript" src="checkoff2.js"></script><link text/css rel="stylesheet" href="checkoff2.css"><title>Ryan Schurton</title></head><body><table border="1"><tr><td id="td1"></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr><tr><td></td><td></td><td></td><td></td><td></td></tr><img src="lastofus.jpg" alt="lastofus" /></table></body></html>

This is my HTML code i have a picture behind it and when a td element is click i am trying to make it disappear a square on the table one by one with each click. in javascript

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...