Semantic-ui: Search clear after selecting item.

Created on 18 May 2016  路  3Comments  路  Source: Semantic-Org/Semantic-UI

I have a situation where i am using Search input from Semantic UI to provide autocomplete for the data. and handle onSelect event so that i get selected item which i add to another list. What i want now is to clear input value after item selected. is there any way i can achieve this?

Should Post to Forum - See Readme Usage Question

Most helpful comment

Leaving this here for anyone else who is looking: if you created your search like this:

var element = $('.ui.search');
element.search({});

then

element.search("set value", "");
element.search("query");

will clear the input and hide the dropdown.

All 3 comments

ok have no problem with reading that but can u please provide links for that? because this is not an issue so i asked for help from u guys and u just closed this without farther assistance or comment u could juts tell me if it is possible and provided any link

Usually @jlukic is adding a comment with this content when adding those tags:

Hi, thanks for posting, unfortunately although your question is valid, this is a usage question, and not appropriate for posting on GitHub Issues.

To help make this board manageable for maintainers to effectively work on actionable changes to the library, we've limited posts on this board to specific bug reports or feature requests. To see how we differentiate between the two, please check out our Contributing Guide.

To help get answers to your question (or get feedback that might allow you to repost this issue) you might want to check out one of our other support resources.

Leaving this here for anyone else who is looking: if you created your search like this:

var element = $('.ui.search');
element.search({});

then

element.search("set value", "");
element.search("query");

will clear the input and hide the dropdown.

Was this page helpful?
0 / 5 - 0 ratings