Trying to use css in jquery to define an element and another snipet of code when the mouse hovers over, i cant get either css codes to run. This is a proposing experiment and already aware CSS is more of use. This is simply a jquery use only codes.
Here are the jquery codes for a given paragraph with class p.
<p class="p"> this is a generic element with generic coding.</p>
Here is the jquery end.
$("document"). ready( function (){
var $p = $("p.p");
$p
.css({
"font-size" : "200%" ,
"color" : "#030"
})
.onhover( function(){
$p.css({
"font-size" : "175%" ,
"color" : "#060"
});
});
});
Hopefully it will work! Thank you all for your hard work!
onhovera jQuery function? what i know isjQuery.hover().onhovershould be.on("mouseover",function(){...