Guest User

Untitled

a guest
Jun 17th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. $(document).ready(function(){
  2. $(document).on('click','#More',function(){
  3. var id = $(".theID").last().val();
  4. alert(id);
  5. $.ajax({
  6. url:'/more',
  7. method: 'POST',
  8. data:{id:id},
  9. success:function(data){
  10. //if(data != ''){
  11. $('#rank').append(data);
  12. /*}else{
  13. $('#Load').remove();
  14. }*/
  15. }
  16. });
  17. });
  18. });
  19.  
  20. $datas = User::loadMore($_POST['id']);
  21. echo View::getTemplate('User/data.html',['datas'=>$datas]);
  22.  
  23. <tr>
  24. <td> <span>blabla</span></td>
  25. <button class='theID' value="{{user.ID}}" style='display: none'></button>
  26. </tr>
Add Comment
Please, Sign In to add comment