<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">$(function(){//check box Click event$ ("#chkAccept"). Click (function() {SetStatus (false);}); $("#codGoPay"). Click (function() {SetStatus (true);});//Register button click eventfunctionSetStatus (isbtn) {varIsaccept = $ ("#chkAccept"). Is (": Checked"); if(isaccept) {$ ("#codGoPay"). Removeattr ("Disabled"));}Else{$("#codGoPay"). attr ("Disabled", "" ");} $("#spanErrMsg"). Toggle (!isaccept);if(Isaccept &&isbtn) {reg ();}}functionReg () {Alert ("Accepted agreement, start registration!" "); //Todo}});</script> for= "Chkaccept" > I have read and accept <a href= "https://www.baidu.com/" > User Agreement </a></label></td></tr ><TR><TD colspan= "2" ><input id= "Codgopay" type= "button" value= "register" disabled/><span id= " Spanerrmsg "style=" color:red; " > You have not accepted the user agreement </span> </td></tr></table></body>Check User Agreement