I am having trouble figuring out how to handle a json response. I just need to take all of the html part and put it into a div. So I can see in console the request is successful and returns something like :
{"goto_section":"review","update_section":{"name":"review","html":" <div> A bunch of html</div>"}}
How do I take this response and put it into my div?
$('my-div').html(response);
Thanks for any help and if you know any good resources where I could learn more I would appreciate it.
Also make sure that if you are using
$.postor$.get, set the parameter after the callback to bejson, or if you are using$.ajax, setdataType:json