er

Monday, June 6, 2016

Table Test



First you need to include the script's javascript file (tablefilter.js) in the head section of your web page
  1. <script type="text/javascript" language="javascript" src="TableFilter/tablefilter.js"></script>  
and make sure that the table you'd like to make filterable has a unique id.
Here you have an example of a regular html table:
FromDestinationRoad Distance (km)By Air (hrs)By Rail (hrs)
SydneyAdelaide14121.425.3
SydneyBrisbane9821.516
SydneyCanberra286.64.3
SydneyMelbourne8721.110.5
AdelaidePerth27813.138
AdelaideAlice Springs1533220.25
AdelaideBrisbane20452.1540
Below the same table with a filtering grid generated automatically (id="table1"):
FromDestinationRoad Distance (km)By Air (hrs)By Rail (hrs)
SydneyAdelaide14121.425.3
SydneyBrisbane9821.516
SydneyCanberra286.64.3
SydneyMelbourne8721.110.5
AdelaidePerth27813.138
AdelaideAlice Springs1533220.25
AdelaideBrisbane20452.1540






























No comments :

Post a Comment

News

Services

Tips & Tricks

© 2016 Pokemon Go Database