表单提交按钮在IE中不起作用

时间:2013-10-29 15:06:34

标签: php html internet-explorer

我知道还有其他问题与我的相同,但我似乎无法使其发挥作用?

我是一个相对较新的php,这个页面是由其他人建立的,现在已经移动了,我无法联系,所以我被困住了,非常感谢你对这个有所帮助。

代码适用于IE以外的所有内容,我点击按钮没有任何反应,没有错误,没有任何内容。

代码:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Track your package</title>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.js"></script>
 <script>window.jQuery || document.write('<script src="../shared/js/jquery-1.9.1.min.js">\x3C/script>')</script>
 <script>
$(document).ready(function() {
    $('#submit').click(function() { 

        if ($('#abcID').val() != "") {

            var q = $('#abcID').val();          
            $.getJSON('http://www.packmanager.co.uk/services/pack_status.php?user='+q, function(data) {         
                $.each(data, function(key, val) {               
                    //only one item required
                    $('#response').html("<p>Current Delivery Status: " + val[0].status+ "</p>");
                })
            });

        } else {
            $('#response').html("<p>Valid Membership Number Required</p>");
        }

        return false;
    });
});
</script>
</head>
<body style="background-color:#dcdcdc;margin:0px;padding:0px">
<!-- Wrapper/Container Table: Use a wrapper table to control the width and the background color consistently of your email. Use this approach instead of setting attributes on the body tag. -->
<table cellpadding="0" cellspacing="0" border="0" style="width:100%;padding:20px;">
<tr>
    <td>

        <!-- Tables are the most common way to format your email consistently. Set your table widths inside cells and in most cases reset cellpadding, cellspacing, and border to zero. Use nested tables as a way to space effectively in your message. -->
        <table cellpadding="0" cellspacing="0" border="0" align="center" style="width:800px;background-color:#fff;border:1px solid #000;">

            <tr>
                <td valign="top" style="padding:20px;font-family:arial;font-size:13px;">
                <h1 style="color:#F00;">Welcome to Tracker.</h1>
                <p>Here you can check on the status of your membership application, just enter the details supplied in your welcome email and you will be presented with the status of your membership pack.</p>                    

                <form name="checkstatus" action="#" method="get">
                    <p>
                    <label for="abcID">Membership number:</label>
                    <input type="text" name="abcID" id="abcID" />
                    <input type="submit" id="submit" value="CHECK" />
                    </p> 
                </form>
                <p id="response"></p>
                </td>
            </tr>
        </table>
        <table cellpadding="0" cellspacing="0" border="0" align="center" style="width:600px;padding-top:10px">
            <tr>
                <td valign="top" style="text-align:center;">
                    <p style="color:#333333;font-family:arial;font-size:10px;">small print here</p>
                    <p style="color:#333333;font-family:arial;font-size:10px;">Footer text
              </td>
            </tr>
        </table>
    </td>
</tr>
</table>
<!-- End of wrapper table -->
</body>
</html>

我意识到这对某些人来说可能很简单,但作为一个新手,并留下这个代码,我正在努力,并希望一些好的编码器有感觉慈善。

手指交叉。

0 个答案:

没有答案
相关问题