Chosen not working inside the form using jquery-steps

元气小坏坏 提交于 2019-12-13 18:39:51

问题


Chosen (chosen.jquery.js) is not working inside the form, after applying jquery-steps. If that code runs outside the form that is used for jquery-steps, it works perfectly fine. I am also having the same problem with datePicker inside the jquery-steps. How can I fix this problem?


回答1:


You need to initialize jquery steps first and then other plugin initialization http://jsfiddle.net/6YkZV/50/

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


来源:https://stackoverflow.com/questions/31758647/chosen-not-working-inside-the-form-using-jquery-steps

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!