小编Kel*_*zle的帖子

使用jQuery提交后的清晰表单

刷新后清除此表单最简单的方法是什么?我尝试的方式将清除表单但不提交到数据库.有人可以向我解释最好的方法.

<html>
<head>
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"></script>
    <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.9/jquery.validate.min.js"></script>
    <script type="text/javascript">
    jQuery(document).ready(function($){
        $("#newsletterform").validate({
            debug: false,
            rules: {
                name: "required",
                email: {
                    required: true,
                    email: true
                }
            },
            messages: {
                name: "Please let us know who you are.",
                email: "A valid email will help us get in touch with you.",
            },
            submitHandler: function(form) {
                // do other stuff for a valid form
                $.post('newsletter.php', $("#newsletterform").serialize(), function(data) {
                    $('#results').html(data);
                });

            }

        });
    });

    </script>

</head>

<div id="content">
    <div id="newsletter-signup">
        <h1>Sign up for News, …
Run Code Online (Sandbox Code Playgroud)

javascript forms jquery

25
推荐指数
3
解决办法
12万
查看次数

如何在bash脚本中访问/ cygdrive/c/..

为什么找不到该文件夹​​?我仔细检查它是否存在.

#!/bin/bash
echo "This will sync the background_docs folder"
lftp ftp://user:pass@server.org -e "mirror -r /cygdrive/c/Users/usera/Desktop/test_folder/ --only-missing -e;exit"
Run Code Online (Sandbox Code Playgroud)

windows bash cygwin

5
推荐指数
1
解决办法
6444
查看次数

从链接中删除文本修饰

为什么不删除此页面上facebook和刺客行业链接的下划线.

.module_wpproad {
text-decoration:none;
border:none;
}
Run Code Online (Sandbox Code Playgroud)

css text-decorations

3
推荐指数
1
解决办法
3347
查看次数

无法在bash脚本中运行镜像命令

对于某些原因,我无法让最后一行工作.它离开我在lftp user@server.org:〜>提示符.有什么建议?

#!/bin/bash
echo "This will sync the background_docs folder"
lftp ftp://user:pass@server  
mirror -r background_docs --only-missing -e
Run Code Online (Sandbox Code Playgroud)

ftp bash

1
推荐指数
1
解决办法
1321
查看次数

标签 统计

bash ×2

css ×1

cygwin ×1

forms ×1

ftp ×1

javascript ×1

jquery ×1

text-decorations ×1

windows ×1