-2

I saw the issue jQuery selector regular expressions and I'm trying to use it but is there a way to get the class?

I'm using the regex in $(.*class).change(function(){ I need to get the class here })

I've seen the .attr('class') but I need to get the div.

Community
  • 1
  • 1
BleuBizarre
  • 368
  • 2
  • 15

1 Answers1

0

Ok so in the function(){ } using $(this) give you the div that was changed so you can apply the .attr('class')

BleuBizarre
  • 368
  • 2
  • 15