jQuery Attr - .attr() Tutorial

Read the tutorial on YogiHosting »

1. Get value of width of the image

2. Set width of below 2 image to 200px

3. Set height of below 2 image to 100px using function

4. Decrease height of below 2 image by 50px (on every button click), using function

5. Set multiple attributes - height, width & src of the below 2 images