i have these two jquery functions and one of them is not getting called.but when i comment one of them the other one gets called and vice-versa.
Which one not be called? the second one?
From your description and code, I think that the reason for your problem is that the second jquery function will has error after the first jquery function executed firstly.
So I suggest you could debug second jquery function. You could use F12 developer tools to check this
Note: if you still have problem about this, would you please post your complete code so I could reproduce your problem.
Best regards
Cathy
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.
Star
8670 Points
2882 Posts
Re: Jquery function not working with multiple function after DOM load
Aug 30, 2017 03:16 AM|Cathy Zou|LINK
Hi tarrun02
As far as i know, we could have multiple $(document).ready() or $(function(){}) calls in a page.
http://www.learningjquery.com/2006/09/multiple-document-ready
https://stackoverflow.com/questions/17487825/document-ready-twice-on-same-page-which-will-execute-first
Which one not be called? the second one?
From your description and code, I think that the reason for your problem is that the second jquery function will has error after the first jquery function executed firstly.
So I suggest you could debug second jquery function. You could use F12 developer tools to check this
Note: if you still have problem about this, would you please post your complete code so I could reproduce your problem.
Best regards
Cathy
Please remember to click "Mark as Answer" the responses that resolved your issue.
If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.