How to display HTML code without interpreting the latter by the browser as instructions?
Code:
<script> $.ajax({ url: "https://api.vk.com/method/users.get", data: { user_ids: '1', v: "5.26" }, dataType: "jsonp", success: function (e) {alert(e.response[0].first_name + ' ' + e.response[0].last_name);} }); </script> That is, I have an alert displayed, the first name was in my div block on the page itself.
document.getElementByID('ваш_див').innerHTML = e.response[0].first_nameand so on. - Jean-Claude