Home > DeveloperSection > Forums > How to use Jquery in web page.
Ankit Singh

Total Post:341

Points:2389
Posted on    January-06-2016 10:05 PM

 JQuery JQuery  JavaScript 
Ratings:


 1 Reply(s)
 257  View(s)
Rate this:
I want to use Jquery in web page. how to use this please help me.


aditya kumar Patel

Total Post:242

Points:1722
Posted on    January-06-2016 10:13 PM

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>

Don't want to miss updates? Please click the below button!

Follow MindStick