Note: It’s okay to use it alone. It can’t appear on the same page at the same time as the built-in search and login. There is no error when opening the page. As long as you click aaa, etc., there will be errors on the web page. My solution is to prevent them from appearing on the same page. , but this is very inconvenient. Can you define val or other methods to solve this problem? Please give me some advice! Thank you
document.forms[0] refers to the first form in the page. When there are two forms on the page, setval(val) is only valid for form[0]. The second form is forms[1 ]