technomark.in
Hot News

Harley Davidson Iron 883 vs Harley Davidson Street Rod Comparison Review

Harley Davidson Iron 883 vs Honda Shadow Phantom Comparison Review

Honda Rebel 500 vs Harley Davidson Iron 883 Comparison Review

Yamaha Bolt vs Harley Davidson Iron 883 Comparison Review

Honda Grazia vs Hero Maestro Edge Comparison Review

Asp.Net AngularJS WCF IIS
DataBase Jquery Bikes Random
HomeContact Us Watch Our YouTube Channel ..........Blog Spot..........

Technomark.in

Honda Rebel 500 vs Harley Davidson Street 500 Comparison Review

Technomark.in

Honda Rebel 300 vs Royal Enfield Classic 350 Comparison Review

Technomark.in

Speed-up Internet Connection

Technomark.in

Before You Copy Any Image From Internet

View All


How To Define Multiple CSS Attributes In JQuery


Define Multiple CSS Attributes In JQuery

> Here we consider how to define multiple css attributes in jQuery.
> Lets start with one example here.
> Suppose we have a Div with particular height and width.

How To Define Multiple CSS Attributes In JQuery, Define Multiple CSS Attributes In JQuery, Define Multiple CSS Attributes, Multiple CSS Styles In JQuery, Multiple CSS Styles In JavaScript, jQuery add styles, jQuery add multiple styles, multiple style, Multiple CSS Attributes, jQuery, HTML, php

> We needs to add background color and border to this Div.
> In jQuery, we can use css function for adding style.
> For adding multiple styles, the best way is to define a class inside Style section.
> Add required styles inside this Class.
> Here we declare a class named newStyle inside Style section.
> We have added background color as red and Border of 4px.

.newStyle {
         background: red;
         border :4px solid black;
}



> Now use jQuery addClass for adding this class to the Div.

$(function () {
         $('#divID').addClass('newStyle');
});



> That's all, by this way we can add multiple style using jQuery.

Watch Video of this Content on Video Steaming


Post Your Comment

Name *


Email *


Comment * Please provide all three fields for posting Comment




Technomark.in

Download Any Video From Youtube Or Any Website

Technomark.in

How To Get Any Color With Its Hex Format Using Firefox

Technomark.in

How To Clear Browser History And Cache Easily

Technomark.in

How To Block Porn Sites From Children Without Any Software

Technomark.in

How To Do A Barrel Roll In Google

View All

Privacy StatementDisclaimerSitemap