3 ms·
what about href='' and in the jquery onclick function, return false at the end?
by keyle 16y ago
what about href='' and in the jquery onclick function, return false at the end?
- chime 16y agohref='' will reload the current page in most browsers if the JS code hasn't loaded yet (waiting for $(function(){}) to fire) or has an error for some reason. href='#' will at least prevent that. Returning false form jQuery works.