i'm using jcarousel lite plugin to house a multi part form. i generate the
next and back buttons dynamically with this code:


                        function create_navigation(){
                                if ($(ol).size() > 0) {
                                        // build links
                                        $(ol).each(function(i){ 
                                                if($(this).children().size() > 
1) {
                                                        
$(this).parent().append(o.btnNavContainer); 
                                                        var carouselNavDiv = 
$(this).parent().children(o.btnNavTarget);                 
                                                        
$(carouselNavDiv).append(o.btnPrevHtml); 
                                                        
$(this).children().each(function(j){
                                                                panelNum = j;
                                                                linkNum = j+1;  
/*                                                              
$(carouselNavDiv).append('<li class="indicator"> # '+linkNum+'
</li>');   
*/                                                               
                                                        });                 
                                                        
$(carouselNavDiv).append(o.btnNextHtml);     
                                                }
                                        });
                                }
                        }



i want to validate each step of the form on click of next. i know that i
need to interrupt the default click functionality and then once the step is
valid, return function(go)....just not sure how to do it in the context that
i have 
                        if(o.btnNext){
                                $(o.btnNext).mouseover(function(){ isMouseOver 
= true; });
                                $(o.btnNext).mouseout(function(){ isMouseOver = 
false; });        
                                
                                $(o.btnNext).livequery("click",function() {
                                        return go(curr+o.scroll);
                                
                                });
                        }

i tried to follow the demo and incorporate into the code that i already have
but i can't seem to get it...i'm still learning my way through the language.
i am using jquery validation plugin. 

thanks
                        
-- 
View this message in context: 
http://www.nabble.com/how-to-validate-multipart-form--tp21296516s27240p21296516.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to