1. Question: Using an element of some kind that is being hidden using .hide() and shown via .show(). Which of the following is the best way to determine if that element is currently hidden or visible on the screen?

    A
    $(element).is(":visible")

    B
    $(this).css("visibility") == "hidden"

    C
    (element).is(":invisible")

    D
    (this).css("visibile") == "hidden"

    Note: Not available
    1. Report
  2. Question: Which of the following will get the first column of all tables using jQuery?

    A
    $('table.tblItemTemplate first-child');

    B
    $('table.tblItemTemplate tr:first-child');

    C
    $('table.tblItemTemplate td:first-child');

    D
    $('tabletblItemTemplate td:first-child');

    Note: Not available
    1. Report
  3. Question: Which option is correct to use the below function to set cursor position for textarea? Function:
    $.fn.selectRange = function(start, end) {
        return this.each(function() {
            if (this.setSelectionRange) {
                this.focus();
                this.setSelectionRange(start, end);
            } else if (this.createTextRange) {
                var range = this.createTextRange();
                range.collapse(true);
                range.moveEnd('character', end);
                range.moveStart('character', start);
                range.select();
            }
        });
    };

    A
    $('#elem').selectRange(3,5);

    B
    $('#elem').selectRange(3 5);

    C
    $('#elem').selectRange(X:3,Y:5);

    D
    $('#elem').fn.selectRange(3,5);

    Note: Not available
    1. Report
  4. Question: Assuming that the jQuery UI library is used to make a list sortable, which of the following code snippets makes "list1" sortable?

    A
    $('#list1').sortable();

    B
    $('#list1').changeable();

    C
    $('#list1').interchangeable();

    D
    $('#list1').organizeable();

    Note: Not available
    1. Report
  5. Question: Which of the following is the correct way to disable an input field with jQuery?

    A
    $("input").attr('disabled','disabled');

    B
    $("input").css('disabled','disabled');

    C
    $("input").attr('disable','disable');

    D
    $("input").('disabled');

    Note: Not available
    1. Report
  6. Question: Which of the following functions can be used to stop event propagation?

    A
    stopPropagation

    B
    disablePropagation

    C
    cancelPropagation

    D
    preventPropagation

    Note: Not available
    1. Report
  7. Question: How can the child img be selected inside the div with a selector?

    A
    jQuery(this).children("img");

    B
    jQuery(this).find("img");

    C
    $(this).find("img").attr("alt")

    D
    $(this).children("img").attr("alt")

    Note: Not available
    1. Report
  8. Question: jQuery allows simulating an event to execute an event handler as if that event has just occurred by using ___.

    A
    trigger function

    B
    execute function

    C
    ntimate function

    D
    jQuery does not have this feature.

    Note: Not available
    1. Report
  9. Question: Which of the following is the correct use of ajaxStart() function?

    A
    ajaxStart() function is used to start ajax call.

    B
    ajaxStart() function is used to run some code when ajax call start.

    C
    both

    D
    none

    Note: Not available
    1. Report
  10. Question: The height function returns the height of an element in _____.

    A
    pixel units

    B
    point units

    C
    em units

    D
    millimeter units

    Note: Not available
    1. Report
Copyright © 2025. Powered by Intellect Software Ltd