1. 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
  2. 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
  3. 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
  4. 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
  5. 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
  6. 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
  7. 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
  8. 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
  9. Question: Which of the following values is/are valid value(s) of secondArgument in addClass('turnRed', secondArgument); function, if the jQuery UI library is being used?

    A
    'fast'

    B
    slow

    C
    1000ms

    D
    3000

    Note: Not available
    1. Report
  10. Question: Consider the following code snippet: $('#button1').bind('click', function(data) {...}); What is the data argument?

    A
    Click event's data

    B
    Function's data

    C
    Global variable

    D
    Local variable

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