Accordion re-creation

Accordion re-creation


Hi,
I'm using accordion with chain,js plugin .
I populated some data into accordion via ajax call .
The problem is when each time the script populate some data, the
accordion seems not working, so I put the accordion in the ajax
success as sample below and it works
$.ajax ({
type: "GET",
                        cache: false,
                        url: "app/supplier/DBOne.php",
                        data: {srch: srch},
                        dataType: 'json',
                        success: function (d) {
                            $("#dialogInner").item(d).chain();
                    $("#accordion").accordion({fillSpace:true});
                        }
                    });

















    • Topic Participants

    • aziem