Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $("#btnEnviar2").click(function(e){ //usuario ya autenticado
- e.preventDefault();
- var dataString = $("#FormK").serialize()+ '&' + encodeURI("btnEnviar2")+ '='+ encodeURI($("input[name$='btnEnviar2']").val());
- $("#accordion").accordion({
- heightStyle: "content",
- collapsible: true,
- active: false
- });
- $.ajax({
- url: "preg-1.php",
- type: "POST",
- data: dataString,
- cache: false,
- success: function (data) {
- //var $response=$(data);
- $response = $('#frJgo', data).html();
- $("#pregunta").html($response);
- $("input:submit").button();
- }
- });
- return false;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement