[jQuery] Automatic scrolling

2010-01-04 Thread macgyver47
I am using 3 radio buttons

...

user clicks on radio button 1 called input#oui
jQuery('input#oui').click(function(){
jQuery('div#reponse1').show('slow');
jQuery('div.postpop').show('slow');
jQuery('div#reponse2').hide('fast');
jQuery('div#reponse3').hide('fast');
});
This works perfectly well but as size of text on page changes quite a
bit I need to send reader to either top of page automatically or
better to a certain div
How can I achieve this as simulating a click on a link doesn't work
using locallScroll as I do for top of page or botton of page
Thanks for help


[jQuery] Automatic scrolling?

2007-05-29 Thread SamCKayak

I have a web page with a user-selectable number of quiz questions.
Each question is in a list element.  Sometimes users select 250 quiz
questions which is a lot...

I wanted to solicit thoughts about automatically scrolling to the next
question when a choice is made (when a radio button is selected)...
Is there any support in jQuery which would allow me to get the next
list element object (that's easy), then scroll the window so that the
next list element is positioned neatly at the top of the window?

Sam