Sometimes you may need to useCodeEvents that trigger a button, text box, or other controls on the webpage are commonly used during logon. The logon interface usually has three text boxes: User Name, password, and verification code, there is also a login button. In many cases, we want to interact with the background to check whether the user name exists, whether the password is correct, and whether the verification code is correct when a text box loses focus, however, there is another possibility: When you enter one of the three, you can directly click the logon button without losing the focus, in this case, you need to manually call the loss of focus event in the text box in the login button to determine whether all events are passed and then log on successfully.
Paste the Code directly:
If you want to trigger a blur event in the text box whose ID is input, you can write it as follows:
$ ('# Input ').Trigger("Blur ");
Similarly, if you want to call the click event of input, you can write as follows:
$ ('# Input'). Trigger ("click ");
And so on...