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
Table of contents 1. What is a closure? 2. The ro...
This article example shares the specific code of ...
Because using group by in MySQL always results in...
CocosCreator version: 2.3.4 Most games have layer...
Preface Recently, I encountered a requirement at ...
<br />Related articles: 9 practical tips for...
Table of contents Canvas related documents Effect...
I solved a problem tonight that has been botherin...
Table of contents Preface text Primitive types Pr...
You may sometimes need to create or delete symbol...
This article shares the specific code for the WeC...
I used the Mysql FIND_IN_SET function in a projec...
When you get a new Linux server, you generally ha...
Today, when testing the null value, I found a sma...
The default table name is base_data and the json ...