title: Ajax not working in CodePen
body: <p>I'm doing the Wikipedia Viewer project from freeCodeCamp. For some reason, the ajax function isn't working because nothing shows up in the console on click. The code for it is shown below. Thanks in advance to anyone who sees this.</p>
  
  <pre><code>$(document).ready(function() {
    $("search").click(function() {
      var searchTerm = $("searchTerm").val();
      var url1 = "https://en.wikipedia.org/w/api.php?action=opensearch&amp;search=" + searchTerm + "&amp;format=json&amp;callback=?";
      $.ajax({
        type: "GET",
        url: url1,
        async: false,
        dataType: "json",
        success: function(data) {
          console.log(data);
        },
        error: function(errorMessage) {
          alert("Error");
        }
      });
    });
  });
  </code></pre>