In this article I will explain how to apply css style using Jquery. This is very simple to apply any css property using JQuery method css.
<html>
<head>
<title> apply css styleusing Jquery </title>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script>
</head>
<body>
<div id="divTest1">
Hello, world!
</div>
<script type="text/javascript">
$("#divTest1").css("color", "blue");
</script>
</body>
</html>
Output:
Hello, world!
Post your comments / questions
Recent Article
- OSError: cannot open resource - Python
- Python read file line count
- How to Encode & Decode using Base64 in Python?
- Unspecified error-The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support.
- How to generate a Captcha verification code image with Python?
- How to show an image using path python PIL?
- How to remove Background from the images using Python?
- Python generate QR code image
Related Article