本文實(shí)例講述了jQuery實(shí)現(xiàn)表單提交時判斷的方法。分享給大家供大家參考。具體實(shí)現(xiàn)方法如下:
使用:
表單提交js:
$("#form").attr("method","GET");
$("#form").attr("enctype","application/x-www-form-urlencoded");
$("#form").attr("encoding","application/x-www-form-urlencoded");
$("#form").submit();
}
}
希望本文所述對大家基于jQuery的web程序設(shè)計有所幫助。
新聞熱點(diǎn)
疑難解答