placeholder image to represent content

JQuery

Quiz by Hardik Vedikin

Our brand new solo games combine with your quiz, on the same screen

Correct quiz answers unlock more play!

New Quizalize solo game modes
40 questions
Show answers
  • Q1
    Which jQuery method is used to hide an HTML element?
    $().remove()
    $().show()
    $().hide()
    $().toggle()
    30s
  • Q2
    Which jQuery method is used to change the content of an HTML element?
    $().text()
    $().css()
    $().html()
    $().append()
    30s
  • Q3
    Which jQuery method is used to add a CSS class to an HTML element?
    $().addClass()
    $().hasClass()
    $().removeClass()
    $().toggleClass()
    30s
  • Q4
    Which jQuery method is used to handle events?
    $().bind()
    $().on()
    $().hover()
    $().click()
    30s
  • Q5
    Which jQuery method is used to retrieve the value of an input field?
    $().html()
    $().attr()
    $().text()
    $().val()
    30s
  • Q6
    Which jQuery method is used to fade in an HTML element?
    $().slideUp()
    $().slideDown()
    $().fadeOut()
    $().fadeIn()
    30s
  • Q7
    Which jQuery method is used to loop through a set of HTML elements?
    $().filter()
    $().each()
    $().map()
    $().find()
    30s
  • Q8
    Which jQuery method is used to retrieve the width of an HTML element?
    $().outerWidth()
    $().height()
    $().width()
    $().innerWidth()
    30s
  • Q9
    Which jQuery method is used to animate HTML elements?
    $().toggle()
    $().animate()
    $().show()
    $().hide()
    30s
  • Q10
    Which jQuery method is used to remove an HTML element?
    $().detach()
    $().remove()
    $().hide()
    $().empty()
    30s
  • Q11
    What is the correct syntax to fade out an element using jQuery?
    $('element').fadeOut();
    $('element').hide();
    $('element').fadeOut(1000);
    $('element').fade(false);
    30s
  • Q12
    Which jQuery method is used to change the text content of an element?
    $('element').html('new text');
    $('element').setAttribute('textContent', 'new text');
    $('element').text('new text');
    $('element').append('new text');
    30s
  • Q13
    Which jQuery method is used to hide an element?
    $('element').hide();
    $('element').remove();
    $('element').fadeOut();
    $('element').show();
    30s
  • Q14
    Which jQuery method is used to add a class to an element?
    $('element').toggleClass('class-name');
    $('element').setAttribute('class', 'class-name');
    $('element').removeClass('class-name');
    $('element').addClass('class-name');
    30s
  • Q15
    Which jQuery method is used to remove an element from the DOM?
    $('element').hide();
    $('element').removeAttr('attribute');
    $('element').remove();
    $('element').append();
    30s

Teachers give this quiz to your class