onchange this.form.submit() not working for web form

后端 未结 2 1871
悲哀的现实
悲哀的现实 2021-01-23 11:45

been working on this way too long...but can\'t seem to identify the problem. Already read dozens of articles on stackoverflow and elsewhere.

when I click and change the

2条回答
  •  滥情空心
    2021-01-23 12:01

    Probably you have element or JS object called form or submit somewhere, conflicting with the real form.

    Most safe way is using document.getElementById:

    
                            
        
    提交评论

提交回复
热议问题