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

JQuery or JavaScript which is quicker in execution?

0 Answers  


What is the use of toggle() method in jquery?

0 Answers  


List a few features of jquery mobile? : jQuery Mobile

0 Answers  


Whether jQuery HTML work for both HTML and XML documents?

0 Answers  


Name some of the methods of jquery used to provide effects?

0 Answers  


What is the purpose of fadetoggle() method in jquery?

0 Answers  


What is jQuery?

1 Answers  


Explain various methods to make ajax request in jquery? : jquery mobile

0 Answers  


Explain various methods to make ajax request in jquery?

0 Answers  


What is the difference between jquery.get() and jquery.ajax()?

0 Answers  


How to disable jquery animation? : jquery mobile

0 Answers  


what is the use of param() method in jquery .

0 Answers  


Categories