JQuery – DOM – InsertBefore, PrependTo and other examples

So I have tried to learn a little about jQuery and its DOM functions and this is what I have managed to do today – an example with “insertBefore”, “prependTo”, “insertAfter” and “appendTo”.

Pretty much that is what the example does – it adds a note to all the links in the text. In my case it is only one:



Furthermore, with jQuery I have managed to make some anchors, e.g. “go to the bottom” and “return to the top”. As far as I was interested in PHP as well, the text is generated with it. Last but not least, there is the date displayed with jQuery. And that is all! 🙂

The code is available in GitHub and here:

Enjoy it! 😀

Tagged with: , , ,