Answer & Solution
<p>jQuery selectors can select elements by various criteria including tag name, class, ID, attributes, and more.
<p>jQuery selectors can select elements by various criteria including tag name, class, ID, attributes, and more.
What is the purpose of the .slideUp() method in jQuery?
A). Slide down element
B). Slide up element
C). Toggle visibility of element with sliding effect
D). Adjust height of element gradually
What is jQuery?
A). JavaScript framework
B). Programming language
C). Markup language
D). Database language
Which jQuery method is used to handle click events?
A). .on()
B). .click()
C). .handle()
D). .trigger()
Which function is used to execute code when the DOM is fully loaded in jQuery?
A). execute()
B). ready()
C). load()
D). complete()
How do you select an element with ID 'example' using jQuery?
A). $('example')
B). $('#example')
C). $('.example')
D). document.getElementById('example')
What is the purpose of the .fadeIn() method in jQuery?
A). Show element with fading effect
B). Hide element with fading effect
C). Toggle visibility of element with fading effect
D). Adjust opacity of element gradually
How can you include jQuery in an HTML document?
A).
B). External file
C). <script>
tag
D). Embedding code
Which jQuery method is used to stop animations?
A). Halt()
B). Finish()
C). Stop()
D). Pause()
What is the purpose of the .html() method in jQuery?
A). Change HTML content
B). Get HTML content
C). Add HTML content
D). Hide an element
Which jQuery method is used to select elements by their class name?
A). selectByClass()
B). getElementByClass()
C). querySelector()
D). $('.className')