Html miscellaneous


  1. Which of the following is not a jQuery dimension method?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    There are various important methods for dimension. Some of them are height(), innerHeight(), outerWidth(), outerHeight(), width(), innerWidth(). Width() method includes border, margin and padding. innerWidth() and innerHeight() method includes padding. outerHeight() and outerWidth() method includes border and padding. CSS() method is used for CSS manipulation in jQuery.


  1. Which method is not used for CSS manipulation?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    There are several functions for CSS manipulation. Some of them are css(), removeClass(), toggleClass(), addClass(). The style attribute is returned by css() method. Classes are added by addClass() method. Classes are removed by removeClass() method. The toggling between adding and removing classes is achieved by toggleClass() method.



  1. The method not used to add new content is ___________.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    In jQuery there are four methods to add new content namely prepend(), before(), after(), append(). The append() method inserts at the end, prepend() method inserts at the beginning of the content, after() method inserts the content after selected HTML element, befor() inserts before the selected HTML element.


  1. Which of the following is not the jQuery method for manipulation?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    For attributes manipulation we use three methods named html(), text() and val(). The content of selected elements is returned by html(). The text content of selected elements is returned by text(). The values of form fields is returned by val().



  1. Which of the following is not the sliding method in jQuery?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    jQuery have three slide methods namely slideUp(), slideDown() and slideToggle().
    Syntax for slideDown() is $(selector).slideDown(speed,callback);
    For slideUp() we use $(selector).slideUp(speed,callback).
    For slideToggle() method the syntax is $(selector).slideToggle(speed,callback).