![]() |
JQuery and scrollTop
Hey all i am trying to figure out what i am doing wrong here with this code. The code below works but it only works for the first link for some reason...
Code:
$(document).ready(function() {Code:
<A href="#" title="page1" id="mybutton"><span class="buttontext" id="mybutton" onMouseOver="this.style.backgroundColor='#000';" onMouseOut="this.style.backgroundColor='#CCC';">1</span></A>Thanks, David |
ID is unique in every page - this should only exist once in your markup.
Use class instead, and change the selector from pound sign to dot. |
Well that was an easy fix, Ramgana! Thanks for the help bud! :)
David |
| All times are GMT +1. The time now is 02:04 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.