[jQuery] manipulation without script execution
How to use functions like .wrap() and .wrapInner()
without of script execution?
Example html:
<div>dgbfsdfbdf</div>
<script type="text/javascript" src="http://site/js/jquery-1.3.2.js"></
script>
<script type="text/javascript" src="http://site/js/TEST.js"></
script> // alert('test')
<script type="text/javascript">
$(function(){
alert('ready');
$('body').wrapInner('<div></div>');
});
</script>
result:
alerts "test", "ready", "ready", "test"
should be:
alerts "test", "ready"