Alex Rivera | Logout

How can I get the current class of a div with jQuery?

Asked 2009-10-08T07:19:55.573
81

Using jQuery, how can I get the current class of a div called div1?

Edit
Report

1 Answer

1
var classname=$('#div1').attr('class')
answered 2009-10-08T07:25:08.160

Your Answer