Advertisement
Guest User

Untitled

a guest
Jun 23rd, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script type="text/javascript">
  2.         $.ajaxSetup({ cache: false });
  3.  
  4.         function removeTalent(talentid) {
  5.             var strData = {};
  6.  
  7.             strData.COMMAND = 'removeFromCart';
  8.             strData.talentid = talentid;
  9.             strData.ie = Math.floor(Math.random() * 101);
  10.             $.post("/viewCart.aspx", strData, callback());
  11.  
  12.             alert("pre jquery click");
  13.  
  14.             // remove talent from page
  15.             function callback() {
  16.                 $('#remove_' + talentid).click(function() {
  17.                     alert("post jquery click");
  18.                     $("#" + talentid).fadeOut("slow", function() {
  19.                         // animation complete
  20.                     });
  21.                 });
  22.             };
  23.         }
  24.     </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement