Guest User

Untitled

a guest
Jan 16th, 2019
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. function updateGroupMembers(id,groupId,action) {
  2. // forming the queryString var data = 'id='+ id + '&groupId='+ groupId + '&action='+ action;
  3. // if searchString is not empty if(id) {
  4. // ajax call $.ajax({
  5. type: "POST",
  6. url: "div2.php",
  7. data: data,
  8. success: function (html) {
  9. $('#div2').html(html);
  10. $('#div2').fadeIn(2000);
  11. },
  12. });
  13. }
  14. return false;
  15. }
  16.  
  17. $('#div1').click(function(){
  18. $('#div2').html('new content')
  19. });
Add Comment
Please, Sign In to add comment