Get service html and display DIV on my site

1

I have an Ajax function that returns me the html of a service I have exposed, I would like to get this html and put it inside the DIV of a my site.

My function is already catching html, however it displayed the html within the DIV would like it to display the content already formatted without the html tags

    
asked by anonymous 24.03.2016 / 15:56

1 answer

3

Turning the comment in response ...

Just use jQuery:

$("#suaDiv").html("<html> seu html </html>")

To submit your form via get:

$.ajax({
    type: "GET",
    data:  $("#form_t").serialize(),
    url: "endereco.com.br/Simulacao2"
}).done(function(data){
    //tratamento
});
    
24.03.2016 / 16:24