Top "This" questions

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

How can I exclude $(this) from a jQuery selector?

I have something like this: <div class="content"> <a href="#">A</a> </div&…

jquery jquery-selectors this
What is context in _.each(list, iterator, [context])?

I am new to underscore.js. What is the purpose of [context] in _.each()? How should it be used?

javascript functional-programming underscore.js this
How do I pass the this context to a function?

I thought this would be something I could easily google, but maybe I'm not asking the right question... How do …

javascript jquery scope this
Use of "this" keyword in formal parameters for static methods in C#

I've come across several instances of C# code like the following: public static int Foo(this MyClass arg) I haven't …

c# parameters this
What does 'var that = this;' mean in JavaScript?

In a JavaScript file I saw: function Somefunction(){ var that = this; ... } What is the purpose of declaring that and assigning …

javascript this
Difference between $(this) and event.target?

I'm new to jQuery, and was making tabbed panels, following the tutorial in JavaScript and jQuery : The Missing Manual, there's …

jquery this jquery-events
Use of 'prototype' vs. 'this' in JavaScript?

What's the difference between var A = function () { this.x = function () { //do something }; }; and var A = function () { }; A.prototype.x = function () { //…

javascript prototype this
React: "this" is undefined inside a component function

class PlayerControls extends React.Component { constructor(props) { super(props) this.state = { loopActive: false, shuffleActive: false, } } render() { var shuffleClassName = this.state.…

javascript reactjs this
jQuery remove selected option from this

first post here, I come in peace :) I've searched but can't quite find what I'm after. I am trying to …

jquery select this option selected
How to pass $(this) properly in click jQuery function

I am trying to make a tictactoe project in jQuery and I am having a major problem... The tiles are …

jquery click this