T
T
therealvetalhidden2015-07-13 22:51:26
JavaScript
therealvetalhidden, 2015-07-13 22:51:26

How to get ajax response correctly?

I need to get in ajax response a piece of json code and a piece of html code together. Is there any technique? How can I parse then? Or is there a better option?

Ajax response example:

{json код}
<div>html код</div>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
legls, 2015-07-14
@therealvetalhidden

> Or is there a better option?
Insert html string into json object field.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question