Detect the error message in the input field
问题 How can I show the message if the user types a restricted symbol? For example, if the user types * in the input field, the error message can show A filename cannot contain any of the following characters: \/:*?"<>| . I hope someone can guide me how to do it. Thanks. <!DOCTYPE html> <html> <body> <h1>How to show error message</h1> <input type="text" class="form-control blank" id="function_code" name="function_code" title="function_code" onpaste="return false"> </body> </html> <script> document