I'm just starting to learn jQuery actually.. I downloaded the starterkit, unpacked it and also downloaded the latest jQuery file from jquery.com.. all referenced to with the right path in the file but for some reason it doesn't work! I also tried the link to the jQuery file on Google but still the same problem.. I know the path is right because when I view source and click on the link, the right file opens.
If I click the 'Run Code' button on the homepage of jQuery.com it does what it's supposed to do, just on my own computer nothing works?! I tried different browsers but that doesnt help either.
The code is too long to post, but it's just the starterkit file taken directly from http://docs.jquery.com/Tutorials:Getting_Started_with_jQuery. And the jquery.js file I link to is just the jQuery file I downloaded from jQuery.com - I don't suppose I should post that here either.
I tried using the console but no errors showed up.
Well without the source code we'll just be guessing... Doesn't matter how long it is, there is very little we can do to help without the code. Can you post your source code along with what you expect it to be doing.
<h3>Bird FAQ - click the questions to show the answers</h3> <dl id="faq"> <dt>What shouldn't I do to the bird?</dt> <dd>Never use oils or lotions which contain oils on your bird. They gunk up the feathers, and ruin their insulating properties. This means a chilled bird. Never wait out a cat bite--those require immediate veterinary attention--a bird can die within two days because a cat's mouth is so filthy and full of bacteria. Don't bother with over-the-counter medication. It really doesn't work, and in some cases, may upset the delicate bacterial balance in the bird's body, or even worsen the situation. Never try to treat a fracture at home.</dd>
<dt>My bird is healthy. I don't need to go to a vet, do I?</dt> <dd>Schedule a "well-bird" checkup. Prevention is the best medicine. Even though the bird might appear outwardly healthy, it may have a low-grade infection or something not so readily apparent. Your bird's health and your peace of mind will be worth it.</dd>
<dt>My bird's leg is being rubbed raw by the leg band. Can I take it off?</dt> <dd>No. Don't attempt this, especially if the leg is broken or swollen. The vet will be able to remove the band, and deal with whatever injury maybe lurking under the banded area.</dd>
<dt>How do I pull a broken blood feather?</dt> <dd>This is probably the most common mishap. The remedy is simple--yank! It's most easily done with two people. One to restrain the bird and the other to pull the feather. Use pliers, or a hemostat. Tweezers won't work on primaries. Make certain that the wing bones are firmly supported or you can break the wing. Clamp onto the feather and give a sharp tug in the direction of the feather. The feather will come out. Next, apply gentle, direct pressure to the follicle where the feather was to stop the bleeding. Dab some styptic powder on it, as it will help stop the bleeding as well. Let the bird rest. Ask your vet or breeder to demonstrate exactly how to pull a blood feather if you're apprehensive about doing it.</dd> </dl>
<p>This is probably the most common mishap. The remedy is simple--yank! It's most easily done with two people. One to restrain the bird and the <a href="#"> This is a link. Hover me to highlight the parent paragraph.</a> other to pull the feather. Use pliers, or a hemostat. Tweezers won't work on primaries. Make certain that the wing bones are firmly supported or you can break the wing. Clamp onto the feather and give a sharp tug in the direction of the feather. The feather will come out. Next, apply gentle, direct pressure to the follicle where the feather was to stop the bleeding. Dab some styptic powder on it, as it will help stop the bleeding as well. Let the bird rest. Ask your vet or breeder to demonstrate exactly how to pull a blood feather if you're apprehensive about doing it.</p>
<p>This is probably the most common mishap. The remedy is simple--yank! It's most easily done with two people. One to restrain the bird and the <a href="#"> This is a link. Hover me to highlight the parent paragraph.</a> other to pull the feather. Use pliers, or a hemostat. Tweezers won't work on primaries. Make certain that the wing bones are firmly supported or you can break the wing. Clamp onto the feather and give a sharp tug in the direction of the feather. The feather will come out. Next, apply gentle, direct pressure to the follicle where the feather was to stop the bleeding. Dab some styptic powder on it, as it will help stop the bleeding as well. Let the bird rest. Ask your vet or breeder to demonstrate exactly how to pull a blood feather if you're apprehensive about doing it.</p>
I took this example from the jquery website but for me it does't work:
<button id="clickme">Click here</button>
<p id="clickme"> This is the paragraph to end all paragraphs. You should feel <em>lucky</em> to have seen such a paragraph in your life. Congratulations! </p>
Yeah actually I didn't put anything in my custom.js file, I had it right in my html document but forgot to paste it in my above posts..
For some reason though, it is working now! I have no idea how or why that happened, I don't believe I changed anything really.. but the good thing is, it is working now! So thanks @TT_Mark and @BoringCode.
I'm just starting to learn jQuery actually.. I downloaded the starterkit, unpacked it and also downloaded the latest jQuery file from jquery.com.. all referenced to with the right path in the file but for some reason it doesn't work! I also tried the link to the jQuery file on Google but still the same problem.. I know the path is right because when I view source and click on the link, the right file opens.
If I click the 'Run Code' button on the homepage of jQuery.com it does what it's supposed to do, just on my own computer nothing works?! I tried different browsers but that doesnt help either.
Any ideas?
Or, uses your browsers debugging tools and view the console. It'll tell you what's causing the error
I tried using the console but no errors showed up.
Cheers
I took this example from the jquery website but for me it does't work:
For some reason though, it is working now! I have no idea how or why that happened, I don't believe I changed anything really.. but the good thing is, it is working now! So thanks @TT_Mark and @BoringCode.