javascript - 选择不使用 jquery-steps 在表单内部工作

标签 javascript jquery jquery-chosen jquery-steps

在应用 jquery-steps 之后,Chosen (chosen.jquery.js) 在表单内部不起作用。如果该代码在用于 jquery-steps 的表单之外运行,则它工作得很好。我在 jquery-steps 中的 datePicker 也遇到了同样的问题。我该如何解决这个问题?

最佳答案

需要先初始化jquery步骤,再初始化其他插件 http://jsfiddle.net/6YkZV/50/

$(function () {
//step1
 $("#wizard").steps({
    bodyTag: "fieldset",
    headerTag: "h4"
  });
//step2
 $(".datepicker").datepicker();
});

关于javascript - 选择不使用 jquery-steps 在表单内部工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31758647/

相关文章:

javascript - 如何将异步状态获取发送到组件?

vue.js - vue + chosen-js : can not import css of chosen-js with chosen-sprite. png

twitter-bootstrap - 选择不使用选项卡 Bootstrap

php - For循环下如何获取Chosen Multiselect选中的值

javascript - Bootstrap 工具提示延迟加载并显示

javascript - JQuery 从第二个零开始播放 html5 视频,但如果用户暂停视频,则保留当前帧

javascript - 在 Protractor 中从命令行传递基本 url

javascript - Ruby on Rails 中无效参数的 Ajax 错误

javascript - "JavaScript heap out of memory"传输大文件时

jquery - 如何使 <code> 片段显示行号、切换和其他功能