Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. // html file
  2. $result.="<div class='listgridview1'>";
  3. $result .='<input type="hidden" class="list-view-id" value="'.$new_array1 [pagFormat].'">';
  4. $result .= '<div class="page_nav' . $new_array1 [pagFormat] . ' pagination-grid">';
  5. $result .= paginate_links($paginate_links1);
  6. $result .= '</div>';
  7. $result .= '</div>';
  8.  
  9.  
  10.  
  11. // jquery file
  12. jQuery(document).ready(function(){
  13. jQuery('body').on('click','.page-numbers',function(){
  14. var v = this;
  15. var id1;
  16. id1 = jQuery(this).parents('.listgridview1').find('.list-view-id').val();
  17. alert(id1);
  18. $( ".page_nav"+id1 ).append("<p>Test</p>" );
  19. return false;
  20. })
  21.  
  22. $(".page_nav"+id1).append("<p>Test</p>" );
  23.  
  24. jQuery('.page-numbers').on('click',function(){
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement