<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js" type="text/javascript"></script> <div id="div3">текст</div> <script type="text/javascript"> var i = 3; alert($('#div'+i).get(0).tagName); </script>