jquery accordion on table rows -


i've implement quickfix accordion following table

<table>     <tbody>         <tr class="category"><td>category - 1</td></tr>         <tr><td>sub cateogry 1.1</td></tr>         <tr><td>sub cateogry 1.2</td></tr>        <tr class="category"><td>category - 2</td></tr>        <tr><td>sub cateogry 2.1</td></tr>     </tbody> </table> 

jquery is

$(document).ready(function () {     $('table').accordion({header: 'tr.category', collapsible: true  }); }); 

fiddle - http://jsfiddle.net/8xyjy/500/

error: seems hide first row after category header row. there accordion option make work correctly?

i've seen examples of using multiple tbody thing there tons of legacy code generates tables (with different bg color header rows) , don't want change structure of table.

can point fix? thanks.


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

visual studio 2010 - Connect to informix database windows form application -

android - Associate same looper with different threads -