And btw... there's any return false in createCharts(); ?
On 21 Jul, 19:53, Glazz <brunofgas...@live.com.pt> wrote: > Hi, > > Can you please post the function that is not working in Firefox > please? > > Regards > > On 21 Jul, 19:48, "evanbu...@gmail.com" <evanbu...@gmail.com> wrote: > > > This is probably more of a basic javascript question than a specific > > jquery function. I have this jQuery function named validateSubmit() > > which calls two other regular javascript functions. When using IE, > > both createCharts() and getDirectorIDs get called but when using > > FireFox, only createCharts() gets called and never makes it to > > getDirectorIDs() and I'm not sure why this occurs. Thanks > > > <script type="text/javascript"> > > // make sure at least one checkbox is checked > > function validateSubmit() { > > if( $("input:checkbox:checked").length == 0 ) { > > alert( "Please select at least one section for your PDF > > profile" ); > > return false; > > } else { > > createCharts(); > > > getDirectorIDs(); > > return true; > > } > > } > > </script> > >