inline(): clear field when edit is triggered
inline(): clear field when edit is triggered
Hi,
I have the following use case:
- I have an editable field with some contents (category name for an item).
- When I click on it, I want the contents to clear out so I can start typing the category name right away (I am using an autocomplete plugin and it seems like a waste of time for the user to have to clear the field out).
- When the user hits enter, I want to submit the data in the field.
I know how to do #3, but I am not sure if it's possible to do #2. Any pointers?
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Using the
open
event you might do something like:Allan
Ended up highlighting the text instead by using this:
Thank you for the quick response and a great tool you are building :-)
Very nice - thanks for posting back with your solution and for your kind words.
Allan