I have this code inside ng-repeat:\[code\]<a href="http://stackoverflow.com/questions/14545744/#" class="disabled" ng-click="doSomething(object)">Do something</a>\[/code\]How to make a condition that the button is disabled when it has \[code\]class="disabled"\[/code\].How can I make the condition in the HTML using the class, or is there a way to do it in the javascript that will look like:\[code\]$('.do-something-button').click(function(){ if (!$(this).hasClass('disabled')) { do something }});\[/code\]