Show all options of datalist on focus

Is there any way to show all options of datalist on focus? I need to show all the options even after a key press.

<form action="" method="get">
 <input list="browsers" name="browser">
 <datalist id="browsers">
  <option value="Internet Explorer">
  <option value="Firefox">
  <option value="Chrome">
  <option value="Opera">
  <option value="Safari">
 </datalist>
 <input type="submit">
</form>

FIDDLE

PS: This is not same as this question. My datalist options are generated dynamically using jquery.

Answers:

Answer
$('input').on('click', function() {
  $(this).val('');
});

try this this will work

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.