I have a variable () loaded with a html code:
$.get(url, function (res, data) {
response = res.responseText;
}
The response variable gets loaded with this:
<html>
<head>
</head>
<body>
<div id="version">1</div>
</body>
</html>
how can I retrieve the content of the div#version to a variable version?
Thanks