title: How can I make my search form work with uppercase and lowercase
body: <p>I want my search form to work with uppercase and lowercase. So whenever I input something that's lowercase it will also show me te uppercase results in the table I'm searching in.</p>
  
  <p>Here's my javascript</p>
  
  <pre><code>function searchFunction() {
  var searchText = document.getElementById('database_search_bar').value;
  var targetTable = document.getElementById('database_table');
  var targetTableColCount;
  
  for (var rowIndex = 0; rowIndex &lt; targetTable.rows.length; rowIndex++) {
      var rowData = '';
  
      if (rowIndex == 0) {
         targetTableColCount = targetTable.rows.item(rowIndex).cells.length;
         continue; 
      }
  
      for (var colIndex = 0; colIndex &lt; targetTableColCount; colIndex++) {
          rowData += targetTable.rows.item(rowIndex).cells.item(colIndex).textContent;
      }
  
      if (rowData.indexOf(searchText) == -1)
          targetTable.rows.item(rowIndex).style.display = 'none';
      else
          targetTable.rows.item(rowIndex).style.display = 'table-row';
  }
  </code></pre>
  
  <p>Can anyone help me with this?</p>