EasyUI - How to add a new Item of Accordion on the top?
I'm having an application using jquery-easyui using an Accordion on the Web page. The HTML Code of Accordion is: <div id="taskAccordion" class="easyui-accordion" data-options="multiple:false" style="width:500px; height:300px;"> <div title="Java" style="padding:10px;"> <p>This is Java.</p> </div> <div title="PHP" style="padding:10px;"> <p>This is PHP.</p> </div> <div title="JS" style="padding:10px;"> <p>This is JS.</p> </div> </div> I want ao add a new Item into Accordion with JS in runtime. The JS-function for adding is: function addItem(){ $('#taskAccordion').accordion('add',{ title: 'Perl',