Where this is coming from  When I first learned jQuery, I normally attached events like this:  $('.my-widget a').click(function() {     $(this).toggleClass('active'); });   After learning more about selector speed and event delegati...
On the front page of a site I am building, several <div>s use the CSS :hover pseudo-class to add a border when the mouse is over them. One of the <div>s contains a <form> which, using jQuery, will keep the border if an input withi...
I am attempting to create a table row with a button in it that when clicked creates a new table row.  The new row also has the same "add line" button on it and I would like to be able to click that button to add another row.  But I cannot see...
Any one know why  $.on.apply(this, args);   gives me "Uncaught TypeError: Cannot read property 'apply' of undefined"  I know for sure that $.on is defined in jQuery :/...
I've followed a few different similar questions here on SO but it's not working for some reason. Can someone help me understand why? I want the loading image to show first, then fade out when the bigger image is loaded. The bigger image shoul...
Is there anything equivalent to jQuery's .on functionality, for chrome-level javascript? I want a Firefox addon to add events on a large number of elements in a document in chrome context. Looping and adding eventlisteners sounds slow and wouldn&...
This is going to be a hard one to explain...  I have a button which is a custom like button.  <button class="like-post">Like Post</button>   After the user clicks like, I do an AJAX call and add a row to the DB and then add and re...
Another question where I get to murder barry.  Can you attach events to an empty array using jQuery's .on() ?    var barry = new Person(); var steve = new Person(); var paul = new Person();  var people = [];   function Person() {  }  Person.proto...
In my web application I use .on() from jQuery to bind click event to a specific li elements in a dynamic multilevel menu created by an AJAX call and passed to the DOM.  $(".dl-menu li:not(:has(li)):not(.dl-back)").on("click", function...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.