Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The $0 thing will save me a lot of time. I often spend a while figuring out how to select a specific element with DOM queries, or assign it a special ID and then do the whole document.getElementById malarkey.


Even better: there is a selection history. $1 get you the item you selected before the one that is currently selected, $2 the one before that, etc.


Oh man, this is the best link and comment thread all week. Thanks!


This blew my mind! I've always thought there should be a way to do this, and now to learn that there always has been!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: