title: Searchbar website : search by page title instead of page link Javascript
body: <p>So i'v found this code to search other pages from the main page of my website, and it works great, but the autocomplete shows the link of the page instead of the title of the page , can anyone help me to modify the code ?</p>
  
  <pre><code>&lt;form id="form1" runat="server" class="online-form"&gt;
      &lt;div class="ui-widget"&gt;
          &lt;input id="tags" class="form-control" placeholder="Rechercher un service…" required="" /&gt;
      &lt;/div&gt;
  &lt;/form&gt;
  &lt;script&gt;
  $(function () {
      var availableTags = ["page1.html","page2.html","page3.html"];
      $("#tags").autocomplete({
          source: availableTags,
          select: function (e, ui) {
              var value = ui.item.value;
              window.location.href = "../" + value;
          },
      });
  });
  &lt;/script&gt;
  </code></pre>