I'm confusing.
I have a button
<button onclick="foo(this)" id="bar">Button</button>
And I code JavaScript like this:
var foo = function(param)
{
param.style.backgroundColor = 'blue';
};
It worked... When I clicked the backgroundColor changed to blue!!
But when I use JQuery css() method, like:
var foo = function(param)
{
param.css('background-color', 'blue');
};
Nothing happened !
Of course I did add the JQuery library !! But nothing happend and I don't know why..?
paraminsidejQuery. Eg:-jQuery(param).css('background-color', 'blue');