Click here to Skip to main content
15,888,239 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
$('#accordion').accordion('activate', 1);

What I have tried:

how to Go specific index in accordion
Posted
Updated 7-Aug-16 19:27pm

1 solution

i Get Solution...



JavaScript
function getIBtrade1() {
          var id = document.getElementById("hdibid").value;
          var active = jQuery("#accordion").accordion('option', 'active');

          $.ajax({
              type: "POST",
              url: "Home.aspx/GetData",
              data: "{IBid:" + parseInt(id) + "}",
              contentType: "application/json; charset=utf-8",
              dataType: "json",
              success: function (response) {

                 var list = document.getElementById("accordion");
                  list.innerHTML = response.d;
                  console.log(response.d);
                 $("#accordion").accordion("destroy");



                 $("#accordion").accordion({
                      active: false,
                      heightStyle: "content",
                      collapsible: true

                  });
                  $("#accordion").accordion("option", "active", active);





              }
          });


      }
 
Share this answer
 
Comments
Karthik_Mahalingam 8-Aug-16 1:48am    
click "Accept answer" to close this post.
kaushik ahir 8-Aug-16 2:36am    
okay

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900