I am trying to get all the fields in a form and set them dirty.
Something like this :
$timeout(function () {
$('input').each(function(){
$(this).$dirty=true;
});
}, 0);
This is not working. I do understand that something like this works just fine:
$scope.form.uName.$dirty = true;
But when I iterate through all the fields using jquery, something goes wrong.
Here is the fiddle: http://jsfiddle.net/Qdk5M/1302/
Appreciate any help. Thank you..