SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    May 2013
    Posts
    204
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    .bind must replaced by .on since deprecated 1.8.3 jQ core....?

    .bind must replaced by .on since deprecated 1.8.3 jQ core....?

  2. #2
    Community Advisor bronze trophy
    fretburner's Avatar
    Join Date
    Apr 2013
    Location
    Brazil
    Posts
    1,443
    Mentioned
    45 Post(s)
    Tagged
    13 Thread(s)
    Quote Originally Posted by lse123 View Post
    .bind must replaced by .on since deprecated 1.8.3 jQ core....?
    Replace your .bind() calls with .on():
    Code JavaScript:
    // before
    $('#my-element').bind('click', function() { //... });
     
    // after
    $('#my-element').on('click', function() { //... });


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •