Ever wanted to edit or color something using jquery ??
Well it's so simple!
We will use the .css() function
Here's the div element which we want to change color to gray:
<div id="togray">Lets change this text color to gray</div>
Now the jquery part:
$(document).ready(function(){
$('#togray').css('color', gray');
});
It's so simple right ? Dont forget to share :D
Categories
- jquery (2)
- jquery css (1)
- jquery examples (2)
- jquery plugin (1)
- think box (1)
Archives
About me
I live in Albania, and i study for TIK Technology of Information and Communication, 17 yo.
My first live website is PHP Tutorials which i own.
Except the webmasters world i like coding stuff in python or c++ even if im not advanced at the last one :P
The free time i spend playing football or fishing.
Swim is one of my favorite sports.
Hope u help this site grow up :D