W3.JS HTML फ़िल्टर


फ़िल्टर तत्व:

w3.filterHTML(selector)

फ़िल्टर सूचियाँ

इनपुट फ़ील्ड में एक नाम खोजें।

  • {{ग्राहक का नाम}}

उदाहरण

<input oninput="w3.filterHTML('#id01', 'li', this.value)">

<ul id="id01">
  <li>Alfreds Futterkiste</li>
  <li>Berglunds snabbkop</li>
...

फ़िल्टर टेबल

नाम देश
बर्गलंड का सुपरमार्केट स्वीडन
उत्तर दक्षिण यूके
अल्फ्रेड का फीडिंग बॉक्स जर्मनी
शाही भोजन जर्मनी
एकत्रित खाद्य गोदाम इटली
पेरिस विशेषता फ्रांस
द्वीप व्यापार यूके
लाफिंग बैचस वाइनसेलर्स कनाडा

उदाहरण

<input oninput="w3.filterHTML('#id01', '.item', this.value)">

<table id="id01">
  <tr>
    <th>Customer</th>
    <th>City</th>
    <th>Country</th>
  </tr>
  <tr class="item">
    <td>Alfreds Futterkiste</td>
    <td>Berlin</td>
    <td>Germany</td>
  </tr>
  <tr class="item">
    <td>Berglunds snabbkop</td>
    <td>Lulea</td>
    <td>Sweden</td>
  </tr>
...