选择不使用jQuery步骤在表单内部工作 [英] Chosen not working inside the form using jquery-steps

查看:64
本文介绍了选择不使用jQuery步骤在表单内部工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在应用了jquery-steps之后,Chosen(chosen.jquery.js)在表单内部不起作用.如果该代码在用于jquery-steps的表单之外运行,则可以正常工作.我在jquery步骤中也遇到了与datePicker相同的问题.我该如何解决这个问题?

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?

推荐答案

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

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();
});

这篇关于选择不使用jQuery步骤在表单内部工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆