javascript - Working with two jquery document.ready functions -


this question has answer here:

i have 2 document.ready functions shown below:

    $(document).ready(function() {         $('#slider1').s3slider({             timeout: 3000          });     });     $(document).ready(function() {      $(".modalbox").fancybox();      $("#contact").submit(function() {     return false; }); 

the first banner jquery supposed rotate forever. second contact form modal box appears on user's click. possible 2 coexist?

of course. add more handlers ready event , all of them fire once ready event fires.


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -