So, I'm trying to make tabs with a jQuery UI, but I can't get them to work. It just displays as a bulleted list, and then with divs everything is under each other. I read on another post that you need some kind of css / theming that I did not have before, so I downloaded it using a special theme. I unpacked it into a folder with my media and created a js, css and development-bundle folder.
I have two js scripts included in the page, and I checked in the Chrome developer tool to make sure they load, and they are. My file also has the following code:
<head> <script type='text/javascript'> $(document).ready(function(){ $("#tabs").tabs(); }); </script> </head> <div id='tabs'> <ul> <li><a href='#tabs-1'>Manage Categories</a></li> <li><a href='#tabs-2'>Add Forms</a></li> <li><a href='#tabs-3'>Change Forms</a></li> </ul> <div id='tabs-1'> <h4>Current Categories</h4> {% for category in categories %} <a href='/admin/fm/delcat/{{ category }}/'>Delete</a> {{ category }}<br /> {% endfor %} </div> <div id='tabs-2'> <p> stuff</p> </div> <div id='tabs-3'> <p>stuff</p> </div> </div>
Not sure why it is not working.
source share