http://hiszpaniec89.ovh.org/accordion/uploader.html
Pierwszy jest rozwinięty. Oto plik js:
$(document).ready(function(){ jQuery('#example').accordion(); });
Probowałem go przerobić do takiej formy, aby wszystkie pola były zwinięte, ale nie udało się:
$(document).ready(function(){ jQuery('#example').accordion({ alwaysopen:false }); });
A to cały plik html:
<?xml version="1.1" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="keywords" content="uploader,hiszpan" /> <link rel="stylesheet" type="text/css" href="style/flora/flora.all.css" media="screen" title="Flora (Default)" /> <!--[if lte IE 6]> <link rel="stylesheet" type="text/css" href="style/ie.css" /> <![endif]--> </head> <body> <ul id="example" class="ui-accordion-container" style="width: 200px;"> <li> <a href='#' class="ui-accordion-link"> Test 1 </a> </li> <li> </li> <li> </li> </ul> </body> </html>
Proszę o pomoc.