1. Question:Write the differences between load and get methods. 

    Answer
    Both methods are similar expect for the fact that $(selector).load() is a method, which means it acts on a set  of elements specified by a selector, On the other hand $.get() is global method that has an explicity defined callback function.






    1. Report
  2. Question:What is the purpose of using ajaxError() method? 

    Answer
    The ajaxError() method  will be execute every time there is an error in AJAX request. 
     Example given below:
    $("#result").ajaxError(function()
    {      
    $(this).html("<span>An error occurred.</span>");
    })






    1. Report
  3. Question:Which requests are cached by the browser? 

    Answer
    jQuery.ajax(): Perform an asynchronous HTTP (Ajax) request.jQuery.getScript(): Load a JavaScript file from the server using a GET HTTP request, then execute it.






    1. Report
  4. Question:What is jQuery selector? 

    Answer
    A JQuery selector is  a function which makes use of expressions to find out matching elements from a DOM based on the given criteria.






    1. Report
  5. Question:Write examples for bind and unbind events for any element. 

    Answer
    Bind():Attach a handler to an event for the elements.Unbind():Remove a previously-attached event handler from the elements.






    1. Report
Copyright © 2025. Powered by Intellect Software Ltd