Thursday, 8 August 2013

jQuery: Getting object value?

jQuery: Getting object value?

console.log(this) throws:
Object
eles: Object
container: x.fn.x.init[1]
ele: x.fn.x.init[1]
0: div.cropMain
context: document
length: 1
prevObject: x.fn.x.init[1]
selector: ".two .cropMain"
__proto__: Object[0]
img: x.fn.x.init[1]
How can I grab the selector value: ".two .cropMain"?

No comments:

Post a Comment