scroll - JQuery: scrollLeft not working (and scrollTop does) -


i have div slide down want slide side of body. every attempt change scrolltop scrollleft doesnt work (the div keeps sliding top..!) im newbie jquery, greateful.

code

jquery('#divbutton').click( function() { jquery('#divwrapper').slidetoggle("600"); jquery('body,html').animate({scrollleft: 0}, 800);   }); 

css

#divwrapper {display:none; background:#444444;  } #divbutton { cursor: pointer; width: 130px; float: right; border: 1px solid #cccccc; height: 24px; margin-top: 1px;  color:#000; } 


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -