About ajax in JQ
水东水南
水东水南 2018-10-29 18:26:55
0
2
1075

When I use jQ's ajax and post to submit data to compare with the verification code created by php and trigger the event, the data comparison and the addition of HTML element tags are effective, but when the verification succeeds or fails, the mouse can no longer be moved in. The input box and partial refresh PHP verification code can only refresh the browser. The code is as follows:

$("#yzm").change(function (event) {
var yzm_num = $(this) .val();
$.post("chk_code.php",{yzm:yzm_num},function (msg) {
$("#code").after(msg);
}) ;
});

In addition, if there is no verification with the Php verification code, but only verification with an array in the database, there will be no problem that the mouse cannot enter the input box.

水东水南
水东水南

reply all(2)
水东水南

The problem was found because the positioning element occupied other elements, leading to the above reasons. Haha, every bug is a small improvement. Now you can simulate user form submission and simulate interaction with PHP data!

水东水南

As shown above: No matter whether the verification is successful or failed, the mouse cannot enter the input box, and partial refresh of the PHP verification code does not work. The browser must be refreshed. Other user name verifications, etc. are all fine, just verify with the PHP verification code. This kind of BUG will happen, please ask the boss for help.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template