0

plugin which I used is http://www.jquery-steps.com/Examples#advanced-form (you can look at clicking by code to see)

and I want to make custom button or trigger but my trigger function is not working on this plugin why that ?

my jquery codes

 $(document).ready(function(){
      $('#go-next').click(function(){
        $('a[href="#next"]').trigger('click');

      })

   })
ani_css
  • 2,118
  • 3
  • 30
  • 73

1 Answers1

1

It worked for me,

    $(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>
Premanand K
  • 632
  • 8
  • 18