js <script> var selectId = document.getElementById("VariantType");//获取ID selectId.onchange = function () { var result = selectId.options[selectId.selectedIndex].innerHTML;//获取选中文本 if (result == "Fusion") { //当变异类型的值为Fusion时,变异值为空…
js: if (document.getElementById("checkboxID").checked) { alert("checkobx is checked");} jquery: if ($("#checkboxID").prop("checked")) { alert("checkbox is checked"); } 或 if ($("#checkboxID").is(…