Go to a specific painel after click event - Accordion

Go to a specific painel after click event - Accordion


Hi everyone!!
I have 2 painels in my accordion. The first painel is a form where I
save some data to data base via $.ajax. But, I neeeded when ajax is
success to go to the other painel to show me all my records from data
base.
I've tried to do this, but it keeps in the same form painel:
$("#btnAdicionarParametro").click(function()
{
$.ajax({
type: 'POST',
data: $("#frm").serialize(),
url: '/SuperAdmin/SalvaParametro',
success: function()
{
gridParametros.flexReload();
$(function()
{
$("#accordion").accordion({
header: "h3",
alwaysOpen: false,
active: "1",
autoHeight: false,
fillSpace: false
});
});
}
})
});
thanks!!!