键字 if (trim(keywords) == "") { alert('Please enter keywords!'); return false; } if (trim(keywords) == "Articles Search By Title,Keywords,Author,etc.") { alert('Please enter keywords!'); return false; } return true; } //除去左右空格 function trim(string) { return string.replace(/(^\s*)|(\s*$)/g, ""); } //选择all 则其他选项不选中 function SelectAll(CheckBox) { var checkBox_list = document.getElementById("ctl00_ContentPlaceHolder1_cblSearchFields"); var list = checkBox_list.getElementsByTagName("input"); var list_length = list.length; for (var i = 1; i < list_length; i++) { if (CheckBox.checked == true) { list[i].checked = false; } } } //选择all以外的选项 则不选中all function NoSelectAll(CheckBox) { var checkboxitem = document.getElementById("ctl00_ContentPlaceHolder1_cblSearchFields_0"); if (CheckBox.checked == true) { checkboxitem.checked = false; } }
Home > Journals > Articles