Sr. No. | Category | Question |
1. |
Basic jQuery Syntax |
Write a jQuery script to change the text of an HTML element with id "myElement" to "Hello, jQuery!". |
2. |
Basic jQuery Syntax |
Create a jQuery script to hide a div when a button is clicked. |
3. |
DOM Manipulation in jQuery |
Write a jQuery script to add a new list item to an unordered list when a button is clicked. |
4. |
DOM Manipulation in jQuery |
Create a jQuery script to change the background color of all paragraphs to blue. |
5. |
Event Handling in jQuery |
Write a jQuery script to display an alert box when an element with the class "myClass" is clicked. |
6. |
Event Handling in jQuery |
Create a jQuery script to toggle the visibility of a div when a button is clicked. |
7. |
Animations in jQuery |
Write a jQuery script to fade out a div over 2 seconds when a button is clicked. |
8. |
Animations in jQuery |
Create a jQuery script to slide down a hidden div over 1 second when a button is clicked. |
9. |
AJAX in jQuery |
Write a jQuery script to load data from a server and display it in a div when a button is clicked. |
10. |
AJAX in jQuery |
Create a jQuery script to send form data to a server using AJAX and display the server's response. |