Jump to content

xander84

Newbie
  • Posts

    1
  • Joined

  • Last visited

xander84's Achievements

Explorer

Explorer (1/14)

0

Reputation

  1. <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>table</title> <style type="text/css"> table tr {background-color:#d6d6f9;} tr:hover {background-color: #9092EC;} </style> <script type="text/javascript"> function checked() { } </script> </head> <body> <table width="100%" cellspacing="0" border="1"> <tr> <td><input name="neft" type="checkbox" value="1" id="neft" /> Нефть</td> <tr/> <tr> <td><input name="zoloto" type="checkbox" value="2" id="zoloto" /> Золото</td> <tr/> <tr> <td><input name="drevesina" type="checkbox" value="3" id="drevesina" /> Древесина</td> <tr/> <tr onclick=""checked""> <td>Нефть</td> </tr> <tr> <td>Золото</td> </tr> <tr> <td>Древесина</td> </tr> </table> </body> </html> Есть вот такой код , подскажите что мне надо написать в скрипте чтобы при событии onclick на tr отмечался соответсвующий checkbox
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. See more about our Guidelines and Privacy Policy