[英]button into tooltip using qtip plugin doesn't work
I wrote this code below used qtip plugin for html link : 我在下面的qtip插件中为html链接编写了以下代码:
$(document).ready(function() {
$('#login').qtip({
content: '<table><tr><td>Username</td><td><INPUT type="text" value="" name="username" title="Enter Username" class="txtbx"/></td>' +
'<td>Password</td><td><INPUT type="password" value="" name="password" title="Enter password" class="txtbx"/></td>' +
'<td><button id="loginbtn" type="submit" >login</button></td></tr></table>',
show: { when: { event: 'click' },
effect: { type: 'fade', length: 200 }
},
hide: { when: { event: 'unfocus' },
effect: { type: 'fade', length: 430 }
},
position: {
adjust: { resize: true
},
corner: {
target: 'bottomLeft',
tooltip: 'topLeft'
}
},
style: {
name: 'dark',
width: { max: 700 }
}
});
});
but the submit button doesn't work !!!!??? 但是提交按钮不起作用!!!! ??? any help here !! 任何帮助在这里!
Does replacing <button id="loginbtn" type="submit" >login</button>
with 是否将<button id="loginbtn" type="submit" >login</button>
替换为
<input name="loginbtn" id="loginbtn" type="submit" value="login" />
work? 工作?
Also, I don't see a form element anywhere with an action or method attribute wrapping all of your form inputs. 另外,我在任何地方都看不到带有包装了所有表单输入的动作或方法属性的表单元素 。 Hence, I don't think the browser knows what to do when you submit the form. 因此,我认为您提交表单时浏览器不知道该怎么办。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.