You can first detect whether you are inputting and record the status. If you were inputting information last time and then lost focus, you can determine that the input is complete. The HTML code is as follows: <tr style="background-color:#FFFFFF"> <th>Business trip location:</th> <td> <input class="form-control" onBlur="finnishInput(event)" "onInput(event)" onporpertychange="onChange(event)" id="travelLocationId" type="text" placeholder="travel location"> </td> </tr> The JS code is as follows var flag = 0; function onInput(e){ console.log("Inputing"); flag = 1; } function finishInput(e) { if(1 == flag){ console.log("InputOk"); flag = 0; } } After testing, the function of judging whether the input is completed is realized and can be used repeatedly. The above is the HTML implementation of the input completion detection function introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website! |
<<: MySQL SQL Optimization Tutorial: IN and RANGE Queries
>>: Docker configuration Alibaba Cloud Container Service operation
•There are many selectors in CSS. What will happe...
React is different from Vue. It implements route ...
Table of contents 1. Mapped Types 2. Mapping Modi...
The following graph shows how time-consuming it is...
Absolute length px px is the pixel value, which i...
Table of contents Modify the repository source st...
Table of contents 1 Use of v-if and v-show 2. Dif...
Be sure to remember to back up your data, it is p...
I reinstalled VMware and Ubuntu, but the command ...
VC6.0 is indeed too old VC6.0 is a development to...
WeChat Mini Program - QR Code Generator Download:...
Preface Named slots are bound to elements using t...
This article does not have any quibbles, it is jus...
Table of contents 1. Encapsulation API 2. Registe...
Preface We all know that in Linux, "everythi...