I am trying to use an element class name and call it as a method for my object.
var thisClass=$this.attr('class')
//thisClass = 'call'
obj.thisClass(ID);
My codes don't work as I wanted to be. Are there anyways to solve this? Thanks a lot!
obj[thisClass](ID)