0
这是我的原始代码,用于在未输入电话号码时生成错误。它工作正常。生成错误消息
if ($("shipping_tel")) {
if ($("shipping_tel").value === "") {
ErrorMsg += " - Shipping telephone: Phone Number\n";
$("shipping_tel_label").className = 'hilight';
} else {
$("shipping_tel_label").className = 'lolight';
}
}
我需要改变某些事情像this..but它不工作
if $('ship_shipping').checked = 'TRUE' {
if ($("shipping_tel")) {
if ($("shipping_tel").value === "") {
ErrorMsg += " - Shipping telephone: Phone Number\n";
$("shipping_tel_label").className = 'hilight';
} else {
$("shipping_tel_label").className = 'lolight';
}
}
}