mootools 1.1.1 scrollto element with class name ... anything like jquery?
        Posted  
        
            by dtour
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by dtour
        
        
        
        Published on 2010-04-26T09:35:17Z
        Indexed on 
            2010/04/30
            9:27 UTC
        
        
        Read the original article
        Hit count: 273
        
I get the impression mootools will do this, but in a roundabout way.
I am working with livevalidation script. What I want to achieve is when the from runs and errors are generated then the page will scroll to the first error found. This will be outputted as:
<span class=" LV_validation_message LV_invalid">Can't be empty!</span>
with jquery I could do the following:
$.scrollTo($('span.LV_invalid:1'));
I get the feeling in mootools I have to first find the position of the first span with class LV_invalid then pass this to the scrollTo function or is there a much simpler solution?
© Stack Overflow or respective owner