Prolem to "slide" animation
I would like to submit to this problem ... The complete example can be found on
http://jsfiddle.net/LyxFP/1/
I don't know why te button "fade" work and the button "slide" don't work ???
Any suggestion is welcome.
I put here the code also
HTML
- <table>
- <tr>
- <td>a</td>
- <td>b</td>
- <td>c</td>
- <td>d</td>
- </tr>
- <tr id="divHidden" style="display: none; background-color:red;">
- <td colspan="4">
- <table>
- <tr>
- <td>e</td>
- <td>f</td>
- <td>g</td>
- <td>h</td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <br><br><br>
- <button id="fade" >Click me (fade) !</button>
- <button id="slide" >Click me (slide)!</button>
jQuery
- $(document).on('click', '#fade', function(){
- $('#divHidden').toggle("fade", 500);
- });
- $(document).on('click', '#slide', function(){
- $('#divHidden').toggle("slide", 500);
- });
CSS
- table, tr, td{
- border:1px solid black;
- }
Thanks for the support
Bye