You can also target elements by their id attributes. First target your button element with the id target3 by using the $("#target3") selector. Note that, just like with CSS declarations, you type a # ...
If we want to manipulate css or we want to add some classes to our tags when page load or when we click on the button , we can achieve it by using jQuery addclass() method . addClass() method add ...