Showing posts with label this. Show all posts
Showing posts with label this. Show all posts

Friday, May 25, 2012

$(this) selector and children?


I'd like to use a selector to select the child img of the div I'm clicking on this example:

Friday, April 6, 2012

jQuery/JavaScript "this” pointer confusion


The behavior of "this" when function bar is called is baffling me. See the code below. Is there any way to arrange for "this" to be a plain old js object instance when bar is called from a click handler, instead of being the html element?

Friday, February 17, 2012

this.function is not a function error, but function exists


I have some code to get calendar events and display them. The display is only updated if the events have changed, since the last call.

JavaScript "this" confusion


This is probably pretty easy, yet I am confused, so maybe I might still learn something more today. I am trying to do the following: