<script type="text/javascript"> var response; $.get('/index', function (data) { response = $('#otvet', data).get(0); alert(response); }); </script>