User Id :    Password :      New Member   Forgot Password  
Topic: What is jquery? How we can use that? Explain that?
Anamika singh
23 Nov 2010 at 03:05 AM
What is jquery? How we can use that? Explain that?

Re: What is jquery? How we can use that? Explain that?
Gaurav
16 Dec 2010 at 02:30 AM

Query is a fast, lightweight JavaScript library that is CSS3 compliant and supports many browsers. The jQuery framework is extensible and very nicely handles DOM manipulations, CSS, AJAX, Events and Animations.
JavaScript is a language whereas jQuery is a library written using JavaScript.


Example 1 – Display an alert on asp:Button click using jQuery
Add a Button element to the page as shown below:
    <asp:Button ID="Button1" runat="server" Text="Button" />
Now in order to tell the browser to perform some action using jQuery as soon as the document is ready or loaded, use this block:

<script type="text/javascript">
        $(document).ready(function() {
        // add code here
        });
    </script>
Add your code in the function block
    <script type="text/javascript">
        $(document).ready(function() {
        $("#Button1").click(function() {
            alert("Hello world!");
        });

        });
    </script>

Total Replies: 1
 
Featured Text Ad

Featured Ad