mindmup / editable-table

tiny jQuery/Bootstrap widget that makes a HTML table editable
MIT License
686 stars 324 forks source link

Programmatically clicking a cell for editing #14

Open kronocharia opened 10 years ago

kronocharia commented 10 years ago

Heya, Great work with the plugin I absolutely love it!

I was wondering however if there was a way to programatically select a cell and show the editing caret inside. Ive tried the standard .focus() and .click() onto the cell to no avail =(

Cheers

gamekid commented 10 years ago

Try $('element').focus().click();

The showEditor function, which is triggered on click, searches 'td:focus' to find the right element.

kstole commented 9 years ago

I was having the same issue and this worked perfectly for me. Thanks.