When I click “Insert row above” or “Insert row below” from contect menu I want have newly created row to be selected. But instead row below or row above newly added row is selected. Is it possible to select new row automatically?
I’ve tried in my own project and it works as I want.
I have just one more question. You suggested “10” as argument to setTimeout function. Is it okey to all similar cases or I should choose other timeout in some cases? Is there any recommendations for timeout value?
I’ve used 10 to make sure that it will run after some laggy script but you can initiate the setTimeout without any value https://jsfiddle.net/xmcy9wsq/ and it should work the same (push the code inside to the last position on the script queue).