How to use WTForms in Ajax validation?
问题 I accustomed of using WTForms by means of Flask-WTF in my flask application. Doing server side validation is trivial. But how do I leverage this server validation to become a field level, ajax, client side validation? So, when user tab to another input fields, my application can directly goes on validating it and give validation warning/info/error. I haven't found a resource in the internet yet 回答1: A possible solution is as follows: On the client side you attach a handler to the blur event