ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
How auto select item in list lookup ?
Title:
B
I
{code}
?
I'd like to auto select item in list lookup when result count of search = 1 because my user always forget choose item in list when thay see just one row if count result search lookup > 1 user click item in list --> user click OK if count result search lookup = 1 autochoose single item in list --> user click OK Pls suggest me.
Save Changes
Cancel
nutfergie
asked at 27 Mar 2018
Answers
B
I
{code}
?
you can use this script: $(document).on('ajaxComplete',function(e){ var items = $('.awe-lookup-popup:visible .awe-srlcont .awe-li'); if(items.length == 1){ items.first().addClass('awe-selected'); } });
Save Changes
Cancel
Omu
answered at 27 Mar 2018
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK