Search
 
SCRIPT & CODE EXAMPLE
 

HTML

sort table in html

<script src="https://www.kryogenix.org/code/browser/sorttable/sorttable.js"></script>

<table class="sortable">
  <tr>
    <th>Name</th>
    <th>Address</th>
    <th>Sales Person</th>
  </tr>

  <tr class="item">
    <td>user:0001</td>
    <td>UK</td>
    <td>Melissa</td>
  </tr>
  <tr class="item">
    <td>user:0002</td>
    <td>France</td>
    <td>Justin</td>
  </tr>
  <tr class="item">
    <td>user:0003</td>
    <td>San Francisco</td>
    <td>Judy</td>
  </tr>
  <tr class="item">
    <td>user:0004</td>
    <td>Canada</td>
    <td>Skipper</td>
  </tr>
  <tr class="item">
    <td>user:0005</td>
    <td>Christchurch</td>
    <td>Alex</td>
  </tr>

</table>
 Run code snippet
Comment

PREVIOUS NEXT
Code Example
Html :: menu icon html code 
Html :: html submit button 
Html :: html input checkbox unchecked 
Html :: href on a button 
Html :: HTML open link in new tab, target="_blank" 
Html :: html textbox pattern mobile number 
Html :: onclick nothing 
Html :: how to display an array in html 
Html :: bootstrap hyperlink 
Html :: bootsrp 
Html :: how to make html open link in new tab 
Html :: nuxt select option v-for 
Html :: input textbox size 
Html :: meta colors 
Html :: disabled input fields vue 
Html :: align right bootstrap 
Html :: html input radio group 
Html :: order invoice template in html 
Html :: input number limit digits 
Html :: django base html 
Html :: html tel link 
Html :: input float 
Html :: html time picker 
Html :: times html 
Html :: use png instead of icon html 
Html :: disable close from screen modal popup 
Html :: svg icon not showing html 
Html :: input with plus and minus buttons 
Html :: how to change innerhtml color 
Html :: index.html 
ADD CONTENT
Topic
Content
Source link
Name
5+8 =