Javascript and jquery code doesnt take effect often
-
Hello. I am doing very simple tests for my wordpress page with jquery. I find that 80% of the time the jquery of js code doesnt take effect. Or it will only work it I add an alert box in a part of the code. Like sertine things i can get to work that proves that jquery is referenced properly but I can only do a few things and Ive been coding for 5 years. There is somthing wrong with my wordpress. I thought maybe clearing the browser cache would fix it but that did nothing. Also my undo redo only works sometimes. Ive been coding for 5 years, im trying to write really simple things in jquery like this
<script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js”></script>
<script>
$(document).ready(function(){alert(“fgfgfg”);
});
</script>That if i write it on one of my pages, it will work sometimes. But other times it wont work. That is the most simple piece of code possible. I am a professional with a job to do image me trying to write a big project where i can only get little snippets to work a bit of the time. Its basically imposable. There has to be a solution i am so annoyed i cant write simple js code in word press spent 3 hours trying to write 5 lines of code but the code will never stick and is so inconsistant i cant even work. Please help.
- The topic ‘Javascript and jquery code doesnt take effect often’ is closed to new replies.