I want to highlight all the empty input fields in a form. is there any css selector which i can use to style those element.
@Nikhil.Dhanda @ShraddhaDhoke Could you please answer?
No, Its not possible as of now.
By default when you fill a form and clicks on the mandatory field and then clears it …In that case, the empty field highlights into red colour as invalid.
As shown below -
Thanks @Nikhil.Dhanda
Also, if you want to highlight the empty fields only on the opening of form, in that case YES, there is a CSS selector - ng-pristine
But there is a drawback that if you enter something in the input field and then removes it, Then the identifier class will not visible… in that case mandatory field works. Mandatory field has a feature that you write something in it and when you removes it… it is highlighted by default due to its mandatory functionality.
okay, thanks @Nikhil.Dhanda