Jquery:Add css and change css- Php Code Hub

Jquery:Add css and change css – Php Code Hub

Jquery:Add css and change css – Php Code Hub:Jquery:add css background-color,add font-size,add color,change fontsize using jquery $.(“selector”).css(); method is using to change the style of div, span, pragraph and other html element.This css are changed on event like onclick onpageload, on hover and other jquery events.This jquery is client side scripting language its are used for improve disgn. and performance of page.

changecssjquery

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script>
$(document).ready(function(){
    $("button").click(function(){
        $("p").css({"background-color": "green", "font-size": "20px","color": "white"});
    });
});
</script>

<p style="background-color:#CCFF99; width:400px;">Jquery:add css background-color,add font-size,add color,change fontsize using jquery $.("selector").css(); method is using to change the style of div, span, pragraph and other html element.This css are changed on event like onclick onpageload, on hover and other jquery events.This jquery is client side scripting language its are used for improve disgn. and performance of page. </p>

<button>Change Css</button>
Share Button

About admin

Leave a Reply

Your email address will not be published. Required fields are marked *

*

Author: pramod kumar kumawat Mob: 9269727062
Free WordPress Themes - Download High-quality Templates