Advertisement
aadhar-matellio

smartwizard

May 26th, 2022
1,457
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.71 KB | None | 0 0
  1. $(document).ready(function () {
  2.     if ($('#smartwizard').length > 0) {
  3.         $('#smartwizard').smartWizard({
  4.             selected: 0,
  5.             theme: 'dots',
  6.             autoAdjustHeight: true,
  7.             transitionEffect: 'fade',
  8.             showStepURLhash: false,
  9.             toolbarSettings: {
  10.                 toolbarExtraButtons: [$('<button></button>').text('Cancel Post')
  11.                     .addClass('btn btn-secondary sw-btn-cancel')
  12.                     .on('click', function () {
  13.                         alert('Finish button click');
  14.                     })
  15.                 ] // Extra buttons to show on toolbar, array of jQuery input/buttons elements
  16.             }
  17.  
  18.         });
  19.     }
  20.  
  21. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement