Advertisement
Guest User

Untitled

a guest
Jun 17th, 2011
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(document).ready(function() {
  2.                 $("#formj").submit(function(){
  3.                    
  4.                     var option = $("input[name='option']:checked").val();
  5.                     var revip = $("#revip").val();
  6.                     $.ajax({
  7.                         type: "POST",
  8.                         url: "tool.php",
  9.                         data: "revip="+ revip + "&option" + option,
  10.  
  11.                         dataType: "html",
  12.                         success: function(data)
  13.                         {
  14.                             $("#risultato").html(data);
  15.                         },
  16.                         error: function()
  17.                         {
  18.                             alert("Errore...");
  19.                         }
  20.                     });
  21.                 });
  22.             });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement