Monday, August 26, 2013

how can I get the current class of a div called div1 using jquery

var div1Class = $('#div1').attr('class');
 or using javascript like
document.getElementById("div1").className 

No comments:

Post a Comment