javascript - JQuery Form Wizard - Finish Button With Link -
i seem having trouble linking finish button on jquery form wizard within flask app link. tried creating simple alert test functionality can't that.
i'm sure i'm missing step somewhere can't seem track down problem.
html:
<script src="../static/jquery-smart-wizard/js/jquery.smartwizard.js"></script> <script type="text/javascript"> $(document).ready(function(){ // smart wizard $('#wizard').smartwizard(); //$('#range').colresizable(); function onfinishcallback(){ $('#wizard').smartwizard('showmessage','finish clicked'); } }); </script> jquery.smartwizard.js:
onfinish: function () { alert("finish clicked!") }, // triggers when finish button clicked any thoughts on i'm doing wrong here?
==edit== have build new pen check out,,
http://codepen.io/mkdizajn/pen/yzmewz?editors=1010
i added finish button , called alerf on it.. code works sure!
// define finish button var btnfinish = $('<button></button>').text('finish').addclass('btn btn-info btn-fnsh'); // smart wizard $('#smartwizard').smartwizard({ selected: 0, theme: 'default', transitioneffect: 'fade', showstepurlhash: true, toolbarsettings: { toolbarposition: 'both', toolbarextrabuttons: [btnfinish] } }); // define action finish btn $('.btn-fnsh').on('click', function(){ alert('finish clicked!') })
Comments
Post a Comment