Stefan_Lam88 0 Junior Poster

Hi senior developers or any experience on jquery. I have a problem here I m unable to show my accordion function correctly.

functionLoadList(){
     
      $.ajax({
       url: "List.php",
          data: "",
          type: "POST",
           success: function(html){                                                         
                                                                     
                                                                        $("#list2").accordion({event: 'mouseover',
                                                                                    animated: "bounceslide",
                                                                                                               header: "h2"
                                                                                                       });
                                                                        $("#list").html("<div id=\"MyGroupListing2\" style=\"width:300px;height:800px\"></div>");
       
                                                             
                                                               }
    
                                               });
<div id="list"></div>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.