By default when you press the tab key in a textarea, it moves to the next focusable element. Here’s how you can alter this behavior by inserting a tab character instead.
JavaScript Snippets
3 posts
Allows a user to toggle password to text to see what they typed in a field in a form or any text input field.
This little jQuery snippet adds a smooth scroll-to-top effect on a page. Unlike some other methods, this doesn’t need an anchor for the scroll effect to work on a page. You can change the scroll speed and “scroll up to” position in this script. $(document).ready(function(){ $(“.top”).click(function(e){ e.preventDefault(); $(“body,html”).animate({ scrollTop: 0 // Top […]