確認你好這裏是我的代碼顯示警告框:的Javascript複選框
var answer = window.confirm ("The registration you have entered is illegal for the uk roads. By clicking ok you are accepting full resposibility for this plate and agreeing to use it for offroad use only.");
if (answer) {
//Tell them its a show plate
$('#numberplateyellow').append(platetext);
$('#numberplatewhite').append(platetext);
$('#illegal').append('Show Plate Not Road Legal');
}else{
$('#illegal').empty();
}
}else{
//Its A Legal Plate
$('#numberplateyellow').append(platetext);
$('#numberplatewhite').append(platetext);
}
我希望爲windows.confirm包含一個複選框,表示檢查這裏如果你同意的條款和條件。
如何添加一個複選框到window.confirm?
謝謝
你在用什麼js庫? jQuery的? – Neal
是的jquery ofcourse – user393273
另外你的if/elses根本不匹配 – Neal