You can first detect whether you are typing and record the status. If you were typing information last time and then lost focus, you can judge that the input has been completed.
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 finnishInput(e) { if(1 == flag){ console.log(InputOk); flag = 0; }}After testing, the function of judging whether the input is completed has been implemented and can be used repeatedly.
The above is the HTML implementation of detecting input completion function introduced by the editor. I hope it will be helpful to you. 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 your support of the VeVb martial arts website!
If you think this article is helpful to you, you are welcome to reprint it, please indicate the source, thank you!