lundi 11 janvier 2016

get the value of a checkbox in go

Sorry I'm a beginer in go. I want to geht the value of a checkbox in go. this is a part of my html code.

<tr> <td id="Name" value="name"</td> <td><input id='restart_ckb' type="checkbox"></td> </tr>

then I need a function

func restart(){
if checkbox is checked{
   do something
   }
}




Aucun commentaire:

Enregistrer un commentaire