title: search box result == Json result
body: <p>I have a Node.js server that reads a JSON file and there are a lot of information in it. One of them is ID of a person, I have a search box in my HTML page I wanna right a jquery method(ajax required) for the client side to find if the ID that the user put in the search box is the same as the ID in JSON, if it is I wanna return some information about that person, let's say name and username of the user.</p>
  
  <p>Note: I am 100% sure that my server.js file works.</p>
  
  <p>Please help me, I am kind of a newbie in Jquery. </p>
  
  <p>I have so far; </p>
  
  <pre><code>$(document).ready(function(){
      $("#id_of_the_search_box_button").click(function (any_function_variable_name) {
      $.ajax({
        type: 'GET',
        url: '/url_of_the_related_server_side',
        dataType: 'json'
        })
            .done(function(data){
                console.log(data);
                alert(JSON.stringify(data));
  
                data.forEach(function (any_function_variable_name) {
  
                  if(any_function_variable_name.search_box_ID == any_function_variable_name.name_in_the_JSON_file_for_one_of_the_searched_ID){
  
                      $userElement = $("&lt;li&gt;").html("&lt;strong&gt;ID: &lt;/strong&gt;" + any_function_variable_name.id); //id is defined in JSON and I was able to use in another part of the jquery
                      $userBlock = $("&lt;ul&gt;")
                          .append(
                              $("&lt;li&gt;").html("&lt;strong&gt;Name: &lt;/strong&gt;" + any_function_variable_name.name) //name of the user
                          )
                          .append(
                              $userElement
                          )
                          .append(
                              $("&lt;li&gt;").html("&lt;strong&gt;User User Name: &lt;/strong&gt;" + any_function_variable_name.userName)
                          );
                                                                    $any_function_variable_nameBlock.insertAfter("#search");
              }
              });
      });})}) 
  </code></pre>
  
  <p>Note: I don't know if I could close the brackets right.</p>
  
  <p>Thanks in advance!</p>