HOW TO USE JQUERY IN WEB PAGE.

Ankit Singh

Total Post:341

Points:2389
Posted by  Ankit Singh
 516  View(s)
Ratings:
Rate this:
I want to use Jquery in web page. how to use this please help me.
  1. aditya kumar Patel

    Post:254

    Points:1810
    Re: How to use Jquery in web page.

    jQuery is JavaScript library.
    It makes things like HTML document traversal and manipulation, event handling,
    animation, and Ajax much simpler with an easy-to-use API that works on all browsers.

    for more details goto https://jquery.com/ 

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="JqueryForum.aspx.cs" Inherits="Forumasp.JqueryForum" %>
    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
    </head>
    <body>
        <script src="Scripts/jquery-2.1.4.js"></script>
        <script>
            $(document).ready(function () {
                $("#btnalert").click(function (event) {
                    alert("Hello !");
                    event.preventDefault();
                });
            });
        </script>
        <form runat="server">
            <asp:Button ID="btnalert" runat="server" Text="Click" ClientIDMode="Static"></asp:Button>
        </form>
    </body>
    </html>

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!