我使用的插件是http://www.jquery-steps.com/Examples#advanced-form (您可以通过单击代码查看)
我想做自定义按钮或触发器,但我的触发器功能不工作这个插件,为什么?
我的jquery代码
$(document).ready(function(){
$('#go-next').click(function(){
$('a[href="#next"]').trigger('click');
})
})发布于 2016-06-21 14:16:39
它对我有效,
$(document).ready(function(){
$('#go-next').click(function(){
$('a[href="#next"]').trigger('click');
});
$('a[href="#next"]').click(function(){
alert('d');
});
});
<body>
<a id="go-next" href="#">gonext</a>
<a id="next" href="#next">next</a>
</body>https://stackoverflow.com/questions/37946831
复制相似问题