Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Is it possible to get value of multiple CSS properties in single statement?



Is it possible to get value of multiple CSS properties in single statement?..

Answer / chaitanya

Well, before jQuery 1.9 release it was not possible but one of the new feature of jQuery 1.9 was .css() multi-property getter.

Hide Copy Code

var propCollection = $("#dvBox").css([ "width", "height", "backgroundColor" ]);

In this case, the propCollection will be an array and it will look something like this.

Hide Copy Code

{

width: "100px",

height: "200px",

backgroundColor: "#FF00FF"

}

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More jQuery Interview Questions

Can we select a element having a specific class in jquery ?

0 Answers  


List browser related issues for jquery?

0 Answers  


What is method chaining in jquery and what are the advantages?

0 Answers  


What is the use of jquery.data()?

0 Answers  


Define url paremeter of jquery ajax method?

0 Answers  


What is jquery mobile theming? : jquery mobile

0 Answers  


explain width() vs css(‘width’) in jquery

0 Answers  


Write the code to define a requirejs module with its dependencies.

0 Answers  


What is the difference between prop() and attr() in jquery?

0 Answers  


What features of jquery, has been used in web applications?

0 Answers  


What are jquery plugins?

0 Answers  


Is there any difference between body onload() and document.ready() function?

1 Answers  


Categories