How do I make an error message clickable?
Kind time of the day, please tell me if there is an opportunity to make it so that when you click on an error message, a method works. There is a form, when entering incorrect data, the validation is processed (the message "The entered data is not correct" appears), you can make this message clickable so that when you click, you can run some method.Vue.js Arianna Bolton, Feb 10, 2020
If you don't use any frameworks (visual), then I think yes.
You must have a div (span or whatever) where the error is placed. The @click handler is hung on this div (I don't remember exactly how it is in VueJS) and the required method is called.Anonymous
To place the code, please use CodePen or similar tool. Thanks you!