<!DOCTYPE html> <html> <head> <title>Working with Jquery</title> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.4/jquery-ui.min.js"></script> <style type="text/css"> .red{ color:red; background-color: blue; } </style> </head> <body> <h1>kakjdnjkasn kashdask ajkshdask jdhsajkd hasjkd hsajdkhsajdk asd</h1> <h1 id="flavio">This is a heading</h1> <p id="myParagraph">kjshdkas dhaksjdh ajks hdasjkdhas jkdh</p> <script> //$('h1').addClass('red'); $('#flavio').css({'background-color': red}); $("#myParagraph").css({"background-color": "black", "color": "white"}); </script> </body> </html>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)