jquery - Using tables inside Accordion -


how can use html table inside accordion??

i have code:

<div id="accordion">     <h3>section 1</h3>     <div>         <p>div 1 contents</p>     </div>     <h3>section 2</h3>     <div>         <table>             <tr>                 <th>a2</th>                 <th>b2</th>                 <th>c2</th>             </tr>         </table>     </div>     <h3>section 3</h3>     <div>         <table>             <tr>                 <th>a3</th>                 <th>b3</th>                 <th>c3</th>             </tr>         </table>      </div>     <h3>section 4</h3>     <div>         <table>             <tr>                 <th>a4</th>                 <th>b4</th>                 <th>c4</th>             </tr>         </table>     </div> </div> 

jquery code (using 1.9.1):

$(function() {     $( "#accordion" ).accordion(); }); 

but output of stops when encounters table , accordion not work...

any solution this??


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -