Created
June 20, 2011 16:22
-
-
Save SeanJA/1035923 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //select everything based on the target href | |
| //if js is turned off, focus on the correct input | |
| $('a.select-all').click(function(e){ | |
| e.preventDefault(); | |
| var target_input = $(this).attr('href'); | |
| $(target_input).select(); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment