jQuery - put eq() of each panel in the title by norlihazmey ghazali
http://stackoverflow.com/questions/36028656/put-eq-of-each-panel-in-the-title/36028747#36028747
by Norlihazmey Ghazali
HTML
<div class="panel panel-default">
<div class="panel-heading"></div>
<div class="panel-body">
Panel content
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading"></div>
<div class="panel-body">
Panel content
</div>
</div>
JavaScript
$('.panel-heading').html( function ( i, old ) {
return ( i + 1 );
})