dev tools: $0.click(); behaves differently to the object it contains

In the HTML there is an element:

<div class=​"data-grid-cell-content" data-bind=​"text:​ $col.getLabel($row())">100000028</div>

in a row that is clickable. I use ‘inspect’ to get that element as $0. The following commands work:

$0.click();
row = $0;
row.click();

However, the following snippet doesn’t, giving this error:

Uncaught SyntaxError: Unexpected token ‘<‘

<div class=​"data-grid-cell-content" data-bind=​"text:​$col.getLabel($row())">100000028</div>.click();

I need to put parentheses () somewhere but can’t work out where?