Define CSS attribute using jQuery any webpage
CSS attribute using jQuery: in your webpage define a CSS attribute using jQuery. This tutorial will be helpful for you use this. There are different types of CSS attribute are use in a web page using jquery.
CSS attribute give a webpage good looks and change page design. You can use CSS any attribute using jQuery in your website. To call class name or call ID name you can define the CSS attribute in the tag. For example:
Set color attributes using jQuery:
$('.my_heading').css('color','red');
.my_heading is the class name of a HTML tag, so it’s call to define dot sign.
Display attributes using jQuery:
$('#my_paragraph').css('display','block');
#my_paragraph is the ID name of a HTML tag, so it’s call to define # sign.
Display block or none:
$('#my_heading').css('display','block'); $('#my_paragraph').css('display','none');
Related posts