<div class="house_size">
<a href="#"></a>
<a href="#" class="active"></a>
<a href="#"></a>
<a href="#"></a>
</div>
console.log($('.house_size').children().hasClass('active').index());
Uncaught TypeError: $(...).children(...).hasClass(...).index is not a function