4 ms·
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 the
by TazeTSchnitzel 14y ago
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.
- notJim 14y agoThis blew my mind! I've always thought there should be a way to do this, and now to learn that there always has been!
- Someone 14y agoEven 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.
- mitjak 14y agoOh man, this is the best link and comment thread all week. Thanks!