Advertisement
Guest User

Untitled

a guest
Oct 25th, 2014
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $("#btnEnviar2").click(function(e){ //usuario ya autenticado
  2.         e.preventDefault();
  3.         var dataString = $("#FormK").serialize()+ '&' + encodeURI("btnEnviar2")+ '='+ encodeURI($("input[name$='btnEnviar2']").val());
  4.         $("#accordion").accordion({
  5.             heightStyle: "content",
  6.             collapsible: true,
  7.             active: false
  8.         });
  9.        
  10.         $.ajax({
  11.             url: "preg-1.php",
  12.             type: "POST",
  13.             data: dataString,
  14.             cache: false,
  15.             success: function (data) {
  16.                 //var $response=$(data);
  17.                 $response = $('#frJgo', data).html();
  18.                 $("#pregunta").html($response);
  19.                 $("input:submit").button();
  20.                 }
  21.             });
  22.         return false;
  23. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement