I am using ajax to pull data from a database and returning it in json format and want to create a drop down filter.
  $.ajax({
    url: `url`,
    dataType: 'json',
    success: function (results) {
      $.each(results, function (index, value) {
       console.log(value.name)
)}
I want to create a select menu where all the names in value.names are there, and when the user selects I want to do
 let userInput = $("select").val();
and then only show the results where the ajax value.name matches the user input?
Is this possible?
 
    