tagged [jquery-events]

Click event doesn't work on dynamically generated elements

Click event doesn't work on dynamically generated elements ``` $(document).ready(function() { $("button").click(function() { $("h2").html("click me") }); $(".test")...

28 Jul at 12:3

jQuery lose focus event

jQuery lose focus event I'm trying to show up a container if a input field gets the focus and - that's the actual problem - hide the container if focus is lost. Is there an opposite event for jQuery's...

jQuery: How to get the event object in an event handler function without passing it as an argument?

jQuery: How to get the event object in an event handler function without passing it as an argument? I have an `onclick` attribute on my link: That points to this event handler in JavaScript: Since the...

15 Apr at 00:41

jQuery textbox change event doesn't fire until textbox loses focus?

jQuery textbox change event doesn't fire until textbox loses focus? I found that jQuery change event on a textbox doesn't fire until I click outside the textbox. HTML: JS: See [demo on JSFiddle](http:...

9 Dec at 00:0

window.resize event firing in Internet Explorer

window.resize event firing in Internet Explorer As you are aware, in Internet Explorer, It does not matter whether the page element is resized through assigning/changing its height or style attribute,...

How do you log all events fired by an element in jQuery?

How do you log all events fired by an element in jQuery? I'd like to see all the events fired by an as a user interacts with it. This includes stuff like: > 1. Clicking on it. 2. Clicking off it. 3. T...

9 Sep at 09:46

How do I make a select .change event not fire until it loses focus (using jquery preferably)?

How do I make a select .change event not fire until it loses focus (using jquery preferably)? I have a select box using the dropdownchecklist jquery plug-in. I want to have a change event fire only af...

12 Feb at 19:58

jQuery .live() vs .on() method for adding a click event after loading dynamic html

jQuery .live() vs .on() method for adding a click event after loading dynamic html I am using jQuery v.1.7.1 where the .live() method is apparently deprecated. The problem I am having is that when dyn...

6 Jan at 01:48

jQuery $(document).ready and UpdatePanels?

jQuery $(document).ready and UpdatePanels? I'm using jQuery to wire up some mouseover effects on elements that are inside an UpdatePanel. The events are bound in `$(document).ready` . For example: Of ...

select2 onchange event only works once

select2 onchange event only works once I have a problem with the jQuery's Select2. When the page loads, if O click on the search result it will select and trigger the event onchange, but only the firs...

jQuery scroll() detect when user stops scrolling

jQuery scroll() detect when user stops scrolling Ok with this.. I can tell when someone is scrolling from what I understand. So with that I am trying to figure out how to catch when someone has stoppe...

Custom events in jQuery?

Custom events in jQuery? I'm looking for some input on how to implement custom eventhandling in jquery the best way. I know how to hook up events from the dom elements like 'click' etc, but I'm buildi...

14 Dec at 15:46

How to bind Events on Ajax loaded Content?

How to bind Events on Ajax loaded Content? I have a link, `myLink`, that should insert AJAX-loaded content into a `div` (appendedContainer) of my HTML page. The problem is that the `click` event I hav...

Check if an image is loaded (no errors) with jQuery

Check if an image is loaded (no errors) with jQuery I'm using JavaScript with the jQuery library to manipulate image thumbnails contained in a unordered list. When the image is loaded it does one thin...

JQuery accordion - unbind click event

JQuery accordion - unbind click event I am writing a form wizard using JQuery's [accordion module](http://bassistance.de/jquery-plugins/jquery-plugin-accordion/). The problem is I want to override any...

How to trigger jQuery change event in code

How to trigger jQuery change event in code I have a change event that is working fine but I need to get it to recurse. So I have a function that is triggered on change that will "change" other drop do...

8 Apr at 19:0

How to catch creation of DOM elements and manipulate them with jQuery

How to catch creation of DOM elements and manipulate them with jQuery I'm trying to devise a method of when adding a simple div element with a class and some data-* in it, it will replace it or add in...

6 Feb at 19:42

jQuery click events firing multiple times

jQuery click events firing multiple times I'm attempting to write a video poker game in Javascript as a way of getting the basics of it down, and I've run into a problem where the jQuery click event h...