$('#amount1').show().prop('required','true'); equivalent with angular code example Example: angular number validation ng-pattern="re"