触发器不能用于jquery-steps?

时间:2016-06-21 14:12:20

标签: javascript jquery jquery-steps

我使用的

插件是http://www.jquery-steps.com/Examples#advanced-form(您可以查看按代码点击查看)

我想制作自定义按钮或触发器但是我的触发器功能不能在这个插件上运行,为什么呢?

我的jquery代码

public void updateMediaScanner(String path){
    MediaScannerConnection.scanFile(this, new String[]{path}, null, new MediaScannerConnection.OnScanCompletedListener() {
        @Override
        public void onScanCompleted(String path, Uri uri) {}
    });
}

1 个答案:

答案 0 :(得分:1)

它对我有用,

    $(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>