I have just started learning jQuery. Meanwhile, I was exploring, I found out that only difference between append() and appendTo() is in the syntax. So, I was trying the following piece of code, wherein append() and prepend() works but not rest of the two
<html>
<head>
<script src="jquery-3.2.1.js"></script>
</head>
<body style="font-family:Georgia">
<script>
$(document).ready(function () {
$('#1').append(' Tutorial');
$('#2').prepend('Tutorial ');
$('Tutorial ').prependTo($('#3'));
$(' Tutorial').appendTo($('#4'));
});
</script>
<div id="1">JavaScript</div>
<div id="2">jQuery</div>
<div id="3">C#</div>
<div id="4">ASP.NET</div>
</body>
</html>
Any help would be greatly appreciated.