December 9th, 2013, 02:57 AM
May someone explain this jQuery code to me?
Just an FYI: I'm using the scrollTo library of jQuery.
I understood everything except: passing an argument to the function and what 'e.preventDefault()' is actually doing.
Thanks, in advance.
December 10th, 2013, 04:08 PM
is preventing the form from being submitted
"For if leisure and security were enjoyed by all alike, the great mass of human beings who are normally stupefied by poverty would become literate and would learn to think for themselves; and when once they had done this, they would sooner or later realise that the privileged minority had no function and they would sweep it away"
- George Orwell, 1984
December 11th, 2013, 02:58 AM
All right, thanks.
Originally Posted by badger_fruit