我不明白最近发生了什么.我试图用Jquery步骤实现表单验证,当我点击下一个按钮时,我的表单应该被验证.但它不是,它在验证功能上返回错误.
这是我的剧本
$(function () {
$("#form-3").steps({
bodyTag: "fieldset",
onStepChanging: function (event, currentIndex, newIndex) {
// Always allow going backward even if the current step contains invalid fields!
if (currentIndex > newIndex) {
return true;
}
// Forbid suppressing "Warning" step if the user is to young
if (newIndex === 3 && Number($("#age").val()) < 18) {
return false;
}
var form = $(this);
// Clean up if user went backward before
if (currentIndex < newIndex) {
// To remove error styles …Run Code Online (Sandbox Code Playgroud) 嗨伙计们,我正在使用这个http://www.jquery-steps.com/Examples作为我的向导形式插件.
我注意到它与Ckeditor插件有冲突,出现Uncaught TypeError错误:无法读取属性'unselectable'为null.
我刚用jQuery表单向导尝试了这个帖子Ckeditor的解决方案,但它没有解决问题.
什么是最好的解决方案?