Jump to content

Background-Color of a TD element disappear on click

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 post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...