jquery lab program 3
3. Using jQuery add a new class to an element that already has a class Aim: To add a new class to an element that already has a class using jQuery. Exercise3.html <!DOCTYPE html> <html> <head> <style type="text/css"> .w3r_background{ background-color: skyblue; } .w3r_font_color{ color:red; } </style> <title>Excercise - 3</title> <script type="text/javascript" src="jquery- 3.1.1.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $('p:last-of-type').addClass('w3r_font_color'); }); </script> </head> <body> <p> P.V.K.N. Govt. College was established in 1961 in Chittoor Andhra Pradesh on the sprawling campus far from the madding crowd of 112 acoes. </p> <p> The College is afliated to Sri Venkateswara Universityr Tirupati.. It has been accredited with ‘A’ grade by the N...