can I ask for advice about why this code does not work in IE11? Chrome is all right.
This script filters items when writing text. I assume there will be some differences in the browser. Maybe just add some parameter?
Thank you.
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"> </script>
</head>
<body>
<input list="brow">
<datalist id="brow">
<option value="Internet Explorer">
<option value="Firefox">
<option value="Chrome">
<option value="Opera">
<option value="Safari">
</datalist>
<script type="text/javascript">
$(document).ready(function(){
$("input").click(function(){
$(this).next().show();
$(this).next().hide();
});
});
</script>
</body>
</html>