How to get the object name of "this" in either javascript or/and jquery? -


i'm reading else plugin code gain better understanding because of poor documentation. i'm seeing lot of "this" objects , need know name of object refers "this" object? i'm not sure if "this" object in jquery or javascriopt..... hope value question because have no starting point code in obtaining "this" object name.. not knowing if "this" object created literal object or constructor object

you can use following:

this.nodename this.tagname 

or

$(this).prop("tagname") $(this).prop("nodename") 

Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -