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...
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...
<a href="#" class="audiocontrol"></a> <a href="#" class="audiocontrol"></a> <a href="#" class="audiocontrol"></a> <a href="#" class="audiocontrol"&...
To use jquery on method instead of deprecated live method in this simple case  $("#myForm").live('submit', function() {    alert("submit"); });   would be  $(document).on('submit', '#myForm', function() {   ale...
I am trying to fire a function from either radio button when they are clicked but it doesn't seem to be working.  My code:  $('.radio [name=list_in]').on('click', function() {     updateListingForm('list_in'); });   My HTM...
I've following two functions in jQuery:  $(document).on('change','.states',function(){    //on change of select  });  $(document).on('click','.date_control',function(){   //on click of input .date_control  });   Ho...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.