Number 1,2,3,4

Number generate

by Ankit Patidar

HTML

<script src="https://getfirebug.com/firebug-lite-debug.js"></script>
<span class="myNum"></span>
<span class="myNum"></span>
<span class="myNum"></span>
<span class="myNum"></span>

JavaScript

$(".myNum").each(function() {
    var $this = $(this);
    $this.prepend($this.index() + 1 +"<br>");
    console.log("Hi");
});