How to get object values and properties in jquery ?

Posted by Rachel on Stack Overflow See other posts from Stack Overflow or by Rachel
Published on 2010-05-04T14:21:59Z Indexed on 2010/05/04 14:28 UTC
Read the original article Hit count: 189

Filed under:
|

I am using jQuery selector to get the values of all CMS components on the page using $('div.cmscomponent') but how can I test this to see if am actually getting the list of compoents on the page.

I use:

var temp = $('div.cmscomponent');
alert(temp);

and result that I get is [object OBJECT] and so how can I test this ? and how can I get values of the object and its properties.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery