Timeline for Custom jQuery code loaded but not working
Current License: CC BY-SA 3.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 20, 2013 at 12:59 | comment | added | risha riss | You are correct, i reverted the question back to original, thanks again for ur help. | |
Oct 20, 2013 at 12:54 | comment | added | Ankit Agrawal | @rishariss please don't edit the question as the another users visiting here may not found the problem, so it would be good if you revert your question back to original as it may be helpul for other person looking for same problem | |
Oct 20, 2013 at 12:52 | comment | added | Ankit Agrawal | @rishariss You are welcome!! | |
Oct 20, 2013 at 12:51 | vote | accept | risha riss | ||
Oct 20, 2013 at 12:51 | comment | added | risha riss | Wow amazing, removing var from menu variable solved everything! Thank you so much! I also updated first post to working solution. | |
Oct 20, 2013 at 12:50 | history | edited | Ankit Agrawal | CC BY-SA 3.0 |
updated my answer
|
Oct 20, 2013 at 12:48 | comment | added | Ankit Agrawal |
One more thing: If you declare a variable without using the var keyword, that variable is automically made global. So can you once try removing var from menu variable
|
|
Oct 20, 2013 at 12:45 | comment | added | risha riss | Yes i did, no effect. | |
Oct 20, 2013 at 12:39 | comment | added | risha riss | I tried wrapping both js files as you suggested but it had no effect. :/ I also edited first post according to ur suggestion. | |
Oct 20, 2013 at 12:36 | comment | added | Ankit Agrawal |
@rishariss Not exactly, you can have two files as you are already having, I am just suggesting to wrap you code inside the document.ready function and that is because to register the custom event for the DOM manipulation
|
|
Oct 20, 2013 at 12:33 | comment | added | risha riss | So if i understood correctly, you are saying to join two separate js files which i have now, into one js file? | |
Oct 20, 2013 at 12:30 | history | answered | Ankit Agrawal | CC BY-SA 3.0 |