Tuesday, 10 September 2013

how to set string value from css class?

how to set string value from css class?

I have the following css
<div class="test"></div>
I want to set string "test" in variable like this:
var $stringvalue = $('.test').class(); /*but seems wrong statment*/

No comments:

Post a Comment