1. Question: Which of the following syntax is correct for fetching the value of an attribute from an element?

    A
    var x=$(selector).attribute(attribute);

    B
    var x=$(selector).getAttr(attribute);

    C
    var x=$(selector).attr(attribute);

    D
    var x=$(selector).attrib(attribute);

    Note: Not available
    1. Report
  2. Question: Which of the following syntax is correct for setting attribute value to an element?

    A
    $(selector).attr(element,value);

    B
    $(selector).attr(attribute,value);

    C
    $(selector).attribute(element,value);

    D
    $(selector).attr(value);

    Note: Not available
    1. Report
  3. Question: Which of the following JQuery function is used to search for descendent elements that match the specified selectors.

    A
    find(selector)

    B
    next(selector)

    C
    search(selector)

    D
    closest(selector)

    Note: Not available
    1. Report
  4. Question: Which of the following JQuery function is used to select nearest parent element that matches the specified selector?

    A
    parent(selector)

    B
    closest(selector)

    C
    next(selector)

    D
    find(selector)

    Note: Not available
    1. Report
  5. Question: Which of the following JQuery function is used to set the plain text contents of all matched elements?

    A
    $(selector).add(val)

    B
    $(selector).text(val)

    C
    $(selector).html(val)

    D
    $(selector).wrap(val)

    Note: Not available
    1. Report
  6. Question: Which of the following JQuery function is used to get the top and left position of an element relative to its offset parent?

    A
    position()

    B
    offset()

    C
    pos()

    D
    getPosition()

    Note: Not available
    1. Report
  7. Question: Which of the following syntax is correct for click event handing function in JQuery?

    A
    $(selector).function(click){ }

    B
    $(selector).click(function(){ });

    C
    $.click(function(){ });

    D
    $(click(function(){ });

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