Jquery Tasks
Jquery Tasks
1. Change Heading Text: Modify the text of an <h1> element when a button is clicked.
3. Update Image Source: Change the source of an <img> element when a button is clicked.
4. Modify Anchor Link: Update the href of an anchor (<a>) tag dynamically.
5. Change Background Color: Click a button to change the background color of a <div>.
6. Get and Set Input Field Value: Retrieve and update the value of a text input field when a button is
clicked.
7. Add and Remove CSS Classes: Add a class to an element on mouseover and remove it on
mouseout.
8. Animate an Element: Move a <div> across the screen when a button is clicked.
9. Change Font Size Dynamically: Increase or decrease the font size of a paragraph when clicking a
button.
10. Display Clicked Element's Text: Show an alert with the text of the clicked element (heading,
paragraph, or button).