New on here and a beginner at code. I have this code I am using as a Karaoke search. However, the JSON contains about 40 000 lines of info, and the search is set up to tigger on keyup, so it is very laggy sometimes. I'm hoping someone can help me alter this code so that it only searches when a submit button is pressed... Any ideas? Greatly Appreciated

```
$(window).load(function(){
$('#search').keyup(function(){
        var searchField = $('#search').val();
        var regex = new RegExp(searchField, "i");
        var output = '<div class="row">';
        var count = 1;
        $.getJSON('data.json', function(data) {
          $.each(data, function(key, val){
            if ((val.name.search(regex) != -1) ||     (val.location.search(regex) != -1)) {
              //output += '<div class="col-md-6 well">';

              //output += '<div class="col-md-7">';
              output += '' + val.name + ' - ';
              output += '' + val.location + '';
              output += '</div>';
              output += '</div>';
              output += '<div class="col-md-7"><a href="request.php?artist='+val.name+'&song='+val.location+'"><img class="img-responsive" src="send.png" /></a></div>';
              if(count%2 == 0){
                output += '</div><div class="row">'
              }
              count++;
            }
          });
          output += '</div>';
          $('#results').html(output);
        }); 
    });
  });

```