submit提交

<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <script src="lib/jquery.js"></script>
    <script>
        function abc() {
            $("#xx").submit(function () {
               var a= $(this).serialize();
                alert(a)
            })
        }
    </script>
</head>
<body>
<form action="" id="xx" target="nm_iframe">
    <input type="text" name="a"/>
    <input type="text" name="b"/>
    <input type="text" name="c"/>
    <input type="text" name="d"/>
    <button onclick="abc()">提交</button>
</form>
</body>
</html>
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章