Advertisement
Guest User

Untitled

a guest
Apr 16th, 2014
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. $.ajax({
  2. url: $('#btn').attr('data-attr-url'),
  3. type: 'POST',
  4. data: $form.serialize(),
  5. success: function(data, textStatus, jqXHR) {
  6. // here I am setting data
  7. $('#divSurfaceContamination').html(data);
  8.  
  9. },
  10. error: function(jqXHR, textStatus, errorThrown) {
  11. alert(jqXHR.responseText);
  12. }
  13. });
  14.  
  15. $('#divData').html(data);
  16.  
  17. <form id="frm"><div id="divDescription" ...
  18.  
  19. <div id="divDescription" ...
  20.  
  21. $('#divData').html("").append(data);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement