-1
如何向我的IF添加多個條件? 我tryed是這樣的:如何向我的IF添加多個條件?
$('#ok').click(function(){
if($('#accept-check:checked').length == 1 && #owner.length > 4 && #number.length == 8){
$('#open-box').removeAttr('disabled');
$('#open-box').attr('onclick','javascript:yourFunctionName();');
}
else{
$('#open-box').removeAttr('onclick');
$('#open-box').attr('disabled','disabled');
}
});
嗯,什麼問題? – Johan
第二行是錯誤 – user2028720