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

html table with sortable columns

<table class="sortable">
 <thead>
   <tr>
     <th>Athlete</th>
     <th>Age</th>
     <th>Country</th>
     <th>Gold Medals</th>
  </tr>
 </thead>
 <tbody>
   <tr>
    <td>David Boudia</td>...
Comment

PREVIOUS NEXT
Code Example
Html :: html learning site 
Html :: html multi page website 
Html :: tag list 
Html :: boostrap 
Html :: https://htmlcheatsheet.com/) 
Html :: how to add user icon in html 
Html :: tailwind checkmark color 
Html :: postcss minify 
Html :: veranderen slb zuyd 
Css :: XAMPP: Another web server daemon is already running 
Css :: how to do a smooth transform scale 
Css :: center in the middle of the screen html css 
Css :: font helvetica css 
Css :: how to align absolute element in center 
Css :: html center video 
Css :: rotate image html 
Css :: css wrap text to next line 
Css :: up scale body css 
Css :: 2 lines paragraph 
Css :: css bottom shadow 
Css :: css hover mouse hand 
Css :: css first child 
Css :: use woff2 font in css 
Css :: position footer to stay at bottom of screen flexbox 
Css :: how to import fonts css 
Css :: jquery css multiple line 
Css :: perfect circle css 
Css :: css animated skills bar 
Css :: display none but keep space 
Css :: scss not working with storybook 
ADD CONTENT
Topic
Content
Source link
Name
1+3 =