阅读背景:

Jquery没有使用此代码

来源:互联网 
<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>
<!DOCTYPE html>
<html>
    <head runat="server">
        <meta name="viewport" content="width=device-width" />
        <title>FillForm</title>
        <script  type="text/javascript" src="../../Scripts/jquery-1.7.1.min.js" />
         <script type="text/javascript"><![CDATA[            
             function farax() {                
                 alert($('#txt_name').val());
                 return false;
             }
        ]]></script>
    </head>
    <body>
    <div>
        <form action="DisplayCustomer" method="post">
            <span> Enter customer id :- </span> <input type="text" name="Id" id="txt_name" /> <br            />
            <span> Enter customer code :-  </span> <input type="text" name="CustomerCode" /><br />
            <span> Enter customer Amount :-  </span> <input type="text" name="Amount" /><br />
            <input type="submit" value="Submit customer data" onclick="return farax(); " />
        </form>
        </div>
    </body>    
</html>
<%@ Page Language="C#" Inherits="System.Web.Mvc



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: