CSS / JS
Ever get frustrated by linked images having an underline when you hover over them? jQuery offers a simple solution.
Ever get frustrated by linked images having an underline when you hover over them? jQuery offers a simple solution.
If you're generating links dynamically, and you find that you fill the 'href' attribute with a # or are leaving it empty, clicking it may cause some undesired effect, (in this case, jumping to the top of the page, and reloading the page). This snippet will prevent that!