Yaresh
08-04-2011, 09:47 PM
1) Script Title: jquery form to formwizard script
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...formwizard.htm
3) Describe problem: I have an ajax routine that checks email not in db when user exits email field. This pops an alert but I would like to disable the "next" button on the current section/page until user inputs valid address.
How would I do this / interface with the formwizard validation routine?
Any suggestions?
Or, modifying the formwizard.js, what var should I use to assign an id to the 'next' span on the sections? If they had an id I could interface with that.
I tried altering the line:
var $paginatediv=$('<div class="formpaginate" style="overflow:hidden;"><span class="prev" style="float:left">Back</span> <span class="status">Step 1 of </span> <span class="next" id="'+ i + '" style="float:right">Next</span></div>')
But it seems "i" is not the right reference.
Thanks
Yaresh
2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...formwizard.htm
3) Describe problem: I have an ajax routine that checks email not in db when user exits email field. This pops an alert but I would like to disable the "next" button on the current section/page until user inputs valid address.
How would I do this / interface with the formwizard validation routine?
Any suggestions?
Or, modifying the formwizard.js, what var should I use to assign an id to the 'next' span on the sections? If they had an id I could interface with that.
I tried altering the line:
var $paginatediv=$('<div class="formpaginate" style="overflow:hidden;"><span class="prev" style="float:left">Back</span> <span class="status">Step 1 of </span> <span class="next" id="'+ i + '" style="float:right">Next</span></div>')
But it seems "i" is not the right reference.
Thanks
Yaresh