Guest User

Untitled

a guest
Apr 24th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. $(function(){
  2. $('#interested_people li').click(function() {
  3. $(this).fadeOut('slow', function(){
  4. $(this).appendTo('#l_people_to_mail').fadeIn();
  5. var new_input =$('<input/>',
  6. { 'type' : 'hidden',
  7. 'name' : 'recipients',
  8. 'value' : $(this).text()
  9. });
  10. $('#form_mail_params').append(new_input);
  11. });
  12. return false;
  13. });
  14.  
  15.  
  16.  
  17. $('#l_people_to_mail li').click(function() {
  18. alert('new parent detected');
  19. $(this).fadeOut('slow', function(){
  20. $(this).prependTo('#interested_people').fadeIn();
  21. $('#form_mail_params input[value="'+$(this).text()+'"]').remove();
  22.  
  23. });
  24. return false;
  25. });
  26.  
  27. });
Add Comment
Please, Sign In to add comment