Skip to content

Commit

Permalink
Changed id to class
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicklee committed Nov 14, 2018
1 parent 7fe423a commit 2a6066b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions index.html
Expand Up @@ -23,7 +23,7 @@
box-sizing: border-box;
}

#myInput {
.myInput {
background-image: url('searchicon.png');
background-position: 10px 12px;
background-repeat: no-repeat;
Expand All @@ -45,10 +45,10 @@ <h2 style="color:#0026FF;">Table Search Example</h2>
<div class="container">
<div class="row">
<div class="col-sm-12">
<input type="text" id="myInput" onkeyup="searchTable(this.value, 'list')" placeholder="Search all categories..." title="Search">
<input type="text" id="myInput" onkeyup="searchTable(this.value, 'list', 0)" placeholder="Search firstnames..." title="Search">
<input type="text" id="myInput" onkeyup="searchTable(this.value, 'list', 1)" placeholder="Search lastnames..." title="Search">
<input type="text" id="myInput" onkeyup="searchTable(this.value, 'list', 2)" placeholder="Search emails..." title="Search">
<input type="text" class="myInput" onkeyup="searchTable(this.value, 'list')" placeholder="Search all categories..." title="Search">
<input type="text" class="myInput" onkeyup="searchTable(this.value, 'list', 0)" placeholder="Search firstnames..." title="Search">
<input type="text" class="myInput" onkeyup="searchTable(this.value, 'list', 1)" placeholder="Search lastnames..." title="Search">
<input type="text" class="myInput" onkeyup="searchTable(this.value, 'list', 2)" placeholder="Search emails..." title="Search">

<table id="list" class="table table-striped">
<thead>
Expand Down

0 comments on commit 2a6066b

Please sign in to comment.