I was recently reading over some cool jQuery tutorials and I decided to try and use one of them. But when I tried it it did not work. I think I did something wrong to apply it.
I will be using following tutorial as an example:
http://shakenandstirredweb.com/240/jquery-moreless-text
Alright to apply this tutorial I do the flowing:
I place this in <head> of the document
Expand|Select|Wrap|Line Numbers
- <script type="text/javascript" src="js/jquery-1.6.js"></script>
- <script type="text/javascript" src="js/more-less.js"></script>
Than in <body> section I put this (as shown in tutorial)
Expand|Select|Wrap|Line Numbers
- <div class="more-less">
- <div class="more-block">
- <p>I put long long content in here</p>
- </div>
- </div>
So what do I do wrong? What is the right way to use jQuery scripts from tutorials? Thank You )