Auto-select when there is only one result,clear the search field after the search has been completed

Auto-select when there is only one result,clear the search field after the search has been completed

bicatubicatu Posts: 2Questions: 0Answers: 0
edited January 2012 in General
Hi, I've been playing with datatables and I'd like to do the following (for which I haven't found a way to do it):

a) If the search only returns one result I'd like it to have the focus

b) After the search is performed the entry field should have the content (of the entry field) highlighted so if the user presses anything it would clear

c) Only perform the search after the enter was pressed
This discussion has been closed.