Top "This" questions

Keyword that refers to the current class instance or object in many object-oriented programming languages.

Hide all but $(this) via :not in jQuery selector

Advanced title, simple question: How can I do the following in jQuery (hiding everything except $(this))? $("table tr").click(function() { $("…

jquery jquery-selectors this
jQuery if "this" contains

I'm trying to change any elements containing a particular text string to a red color. In my example I can …

jquery this contains
React - TypeError: Cannot read property 'props' of undefined

I'm trying to create a click event be able to delete an item on my list, but when I click …

javascript reactjs this bind react-props
jQuery Passing $(this) to a Function

I have lines of code like this: $(this).parent().parent().children().each(function(){ // do something }); It works well. But I …

jquery this parameter-passing
When to call activity context OR application context?

There has been a lot of posting about what these two contexts are.. But I'm still not getting it quite …

android this android-context
Why can't we use 'this' keyword in a static method

class Sub { static int y; public static void foo() { this.y = 10; } } I understand that this represents the object invoking the …

java oop static this
Android: why must use getBaseContext() instead of this

this often to reference to current context. But, at some case, why we must use getBaseContext() instead of this. (It …

android this android-context
Java - when to use 'this' keyword

What is the best practise for using the this keyword in Java? For example, I have the following class: class …

java coding-style this
Difference between Python self and Java this

I had done a bit of Python long back. I am however moving over to Java now. I wanted to …

java python this self
Why is 'this' undefined inside class method when using promises?

I have a javascript class, and each method returns a Q promise. I want to know why this is undefined …

javascript node.js promise this q