Hi, I created the table with animated, the table i created is like this sample...
- <table width="95%" id="table"
- class="slideLeft "
- align="center"
- border="1"
- cellpadding="2"
- cellspacing="0"
- bordercolor="#ff8c00">
- <tr></tr>
- <td></td>
- <tr></tr>
- </table>
In jquery I wrote for animation like this...
- $('table.tableSorter.slide').tableSort( {
- sortBy: ['numeric', 'text', 'text', 'numeric', 'numeric', 'numeric'],
- animation: 'slide',
- speed: 500
- } );
-
- $('table.tableSorter.fade').tableSort( {
- sortBy: ['numeric', 'text', 'text', 'numeric', 'numeric', 'numeric'],
- animation: 'fade',
- speed: 250,
- delay: 25
- } );
-
- $('table.tableSorter.fadeAll').tableSort( {
- sortBy: ['numeric', 'text', 'text', 'numeric', 'numeric', 'numeric'],
- animation: 'fadeAll',
- speed: 250
- } );
This first step is works great in animation, what does does do is that the table will "slide left" or "fade" or "slide" all that depend on name of class in <table>... See table code in BOLD...
And now next step is I want to change to radio option to select animate and change table animate, I wrote like this...
- <div id="test">
- <input type="radio" name="animate" value="1" />slide
- <input type="radio" name="animate" value="2" />slideLeft
- <input type="radio" name="animate" value="3" />fade
- </div>
This where I'm having trouble with, my question is that how can I write jquery code to allow me to select one of animation from radio option and automatic change animate for table!
Please help thanks.
AM