jquery script with list.pagination.js not processing after changing page -


<div id='listid'> <ul class='list'> <li class='add_to_email' email='a@gmail.com'>a@gmail.com</li> <li class='add_to_email' email='b@gmail.com'>b@gmail.com</li> <li class='add_to_email' email='c@gmail.com'>c@gmail.com</li> <li class='add_to_email' email='d@gmail.com'>d@gmail.com</li> <li class='add_to_email' email='e@gmail.com'>e@gmail.com</li> </ul> <ul class='pagination'></ul> </div> <input type='text' id='show_what_was_clicked'> <script> $( document ).ready(function() {     var options = {         valuenames: [ 'email' ],         page: 3,         plugins: [             listpagination({})         ]     };     var listobj = new list('listid', options);      $(".add_to_email").click(function(){         $("#show_what_was_clicked").val($(this).attr("email"));     }); }); </script> 

http://jsfiddle.net/2tkwr5mz/2/

have list loads in list.js, can't click event fire after switching page 2. if go page 1, still fires. (displays email when clicked, on page 1.)

just used click instead of ready.

$("#expand_group").click(function(){ 

Comments

Popular posts from this blog

python - Referencing Data From a 2D Histogram -

c# - Derived UserControl layout resets after build -

php - MySQL LIMIT results with INNER JOIN with more than 2 tables -