小编Ter*_*h14的帖子

Jquery-steps上的表单验证:undefined不是.validate()函数的函数

我不明白最近发生了什么.我试图用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)

jquery jquery-steps

4
推荐指数
2
解决办法
1万
查看次数

Jquery步骤插件与CKeditor RTE插件冲突

嗨伙计们,我正在使用这个http://www.jquery-steps.com/Examples作为我的向导形式插件.

我注意到它与Ckeditor插件有冲突,出现Uncaught TypeError错误:无法读取属性'unselectable'为null.

我刚用jQuery表单向导尝试了这个帖子Ckeditor的解决方案,但它没有解决问题.

什么是最好的解决方案?

jquery-steps

1
推荐指数
1
解决办法
2976
查看次数

标签 统计

jquery-steps ×2

jquery ×1