作者:黄河
div.hanyu_nav>ul>li").on("click", function () {
$("div[data-id='guoxuehanyu_cx']>div.hanyu_search>form").attr("action","//tool.httpcn.com/" + $(this).attr("data-val") + "/So.asp");
$("div[data-id='guoxuehanyu_cx']>div.hanyu_nav>ul>li.active").removeClass("active");
$(this).addClass("active");
})
$("div[data-id='guoxuehanyu_cx']>div.hanyu_search>form").submit(function () {
if ($.trim($("div[data-id='guoxuehanyu_cx']>div.hanyu_search>form :text[name='wd']").val()) == "") return false;
});
});