www.webdeveloper.com
Results 1 to 4 of 4

Thread: Live function not working in the following code

Hybrid View

  1. #1
    Join Date
    Apr 2014
    Posts
    8

    Unhappy Live function not working in the following code

    html:

    <input type="button" value="Click For Duplicate" class="duplicate" />

    jQuery:

    $(document).ready(function(){

    $(".duplicate").live({
    click: function(){
    alert("You clicked live function");
    }
    });

    });


    error in firebug:

    TypeError: $(...).live is not a function

  2. #2
    Join Date
    Mar 2005
    Location
    Behind you...
    Posts
    868
    What version of jQuery do you use on this page? The .live() method was removed as of version 1.9, thus it doesn't exist in any recent version of jQuery (obviously including the current version).
    "Given billions of tries, could a spilled bottle of ink ever fall into the words of Shakespeare?"

  3. #3
    Join Date
    Apr 2014
    Posts
    8
    So which version of jQuery I have tro use???

  4. #4
    Join Date
    Mar 2005
    Location
    Behind you...
    Posts
    868
    If you want to use the .live() method then you'll need to find and use jQuery 1.8 (or any lower version).
    "Given billions of tries, could a spilled bottle of ink ever fall into the words of Shakespeare?"

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles