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
Post a Comment