ikfu7g
Last Updated: February 25, 2016
·
3.431K
· stevennunez

Chrome - Show currently selected element

There's no need to run a crazy jQuery selector to pull up an element in the Chrome console.

  1. Right click and inspect the element.
  2. Open the console tab. The selected element will be accessible as $0.

Chrome will remember the last 5 selected elements. They are accessible by using $0, $1, $2, $3, $4.

5 Responses
Add your response

4101

Whoa

over 1 year ago ·
4104

So simple, yet so powerful

over 1 year ago ·
4105

cmd + shift + c for those who don't like right-clicking

over 1 year ago ·
4108

Also works in firebug for Firefox :)

over 1 year ago ·
5238

Greate tip!

over 1 year ago ·