<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <ptml xmlns = "http://www.w3.org/1999/xhtml"> <pead> <title> js add Delete row and double-click to change the text box --- A Hui Nan exercise Work </title> <style type = "text/css"> * {font-size: 12px ;}# myTable {background: # D5D5D5; color: #333333 ;}# myTable tr {background: # F7F7F7 ;}# myTable tr th {height: 20px; padding: 5px ;}# myTable tr td {padding: 5px ;}</style> </pead> <body> <input type = "button" onclick = "addRow () "value =" insert a row "/> <table id =" myTable "border =" 0 "cellpadding =" 0 "cellspacing =" 1 "> <tr> <th> NO. </th> <th> name </th> <th> operation </th> </tr> </table> </body> </ptml>
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]