bLengthChange-Combobox and the focus
bLengthChange-Combobox and the focus
Hi there, im quite new to datatables.
And now there occured a problem, at least it's a problem for me =)
Now to the question.
Is there a way to focus the selected row rather than the combobox of the shown length for the datatable?
Every time a new length i.e. 50 is chosen, the combobox helds the focus, so if you press the arrow-keys up or down, you change
the length of the shown items, which shouldn't be. Usually the focus should stay on the selected row, but it doesn't.
I tried with [code]currentId.focus();[/code]
after the fnDraw-function, where currentId is the current row. But it didn't work.
I would be glad if some of you has a few solutions for me.
miriam
And now there occured a problem, at least it's a problem for me =)
Now to the question.
Is there a way to focus the selected row rather than the combobox of the shown length for the datatable?
Every time a new length i.e. 50 is chosen, the combobox helds the focus, so if you press the arrow-keys up or down, you change
the length of the shown items, which shouldn't be. Usually the focus should stay on the selected row, but it doesn't.
I tried with [code]currentId.focus();[/code]
after the fnDraw-function, where currentId is the current row. But it didn't work.
I would be glad if some of you has a few solutions for me.
miriam
This discussion has been closed.
Replies
You could blur() focus on it if you want on its `change` event, but you'd need to know where to restore focus to if you wanted to do that.
Allan