1
Which jQuery method is used to handle events?
View Answer
getEvent()
.trigger()
.on()
.animate()
2
How do you select an element by its class in jQuery?
View Answer
getElementById()
$(element)
$(".class")
$("element")
3
What is the purpose of
$(document).ready()
in jQuery?View Answer
To initialize jQuery animations
To handle AJAX requests
To execute code when the DOM is fully loaded
To define CSS styles dynamically
4
Which jQuery method is used to send an AJAX request to a server?
View Answer
$.load()
$.post()
$.get()
$.ajax()
5
How can you fade out an element with jQuery?
View Answer
.show()
.fadeIn()
.fadeOut()
.toggle()