.submit() Events > Form Events | Forms .submit( handler )Returns: jQuery Description: Bind an event handler to the "submit" JavaScript event, or trigger that event on an element. version added: 1.0.submit( handler ) handler Type: Function( Ev
今天写一个表单提交 居然走到$('#wechat_form').submit() 这,但怎么都没有提交这个表单 google 了一下 Additional Notes:Forms and their child elements should not use input names or ids that conflict with properties of a form, such as submit, length, or method. Name conflicts can cause
如果在使用layui-layer模块过程中,在子页面执行代码: window.parent.$("#id").val() 报错:window.parent.$ is not a function. 可以使用以下代码试试: var parent$ = window.parent.layui.jquery; var value = parent$("#id").val() 贴个debug的图: 父页面是使用layui.use()的方式加载模块的. 忙着写代码,没有深究原