How to convert jquery code into javascript
<p>Yesterday I have put the question which was answered correctly but now I want to convert that same code into javascript. I have made some changes but its not work</p>

<p>working code- <a href="http://jsfiddle.net/SXzyR/8/" rel="nofollow">http://jsfiddle.net/SXzyR/8/</a></p>

<p>mycode- <a href="http://jsfiddle.net/SXzyR/11/" rel="nofollow">http://jsfiddle.net/SXzyR/11/</a></p>
