When it comes to adding an icon after an input field when a required field is not filled up, my friend and I have different approaches.
My idea is to modify the highlight function in Jquery.Validation by adding a class to the parent element of the input (which happens to be a div) so that I can style it using a pseudo element.
On the other hand, my friend suggests adding a div after the input for styling purposes. He did mention, however, that using HTML elements solely for styling might not be the best practice.
Despite this, he also believes that making modifications to a library is not a good practice either. So, we are left wondering which approach would be more suitable.