jquery - proper accordian menu not opening after form submit -


i have $("#accordid").val() servlet , accordian id before form submit, want open same accordian.

$(document).ready(function() {         aid = $("#accordid").val();         alert(aid);         if(aid =="")             aid = 0;         $("#accordioncategory").accordion({             collapsible  : true,             active       : false,             heightstyle  : "content",             navigation   : true,             active: aid         });  }); 

the alert giving proper result, proper accordin menu not opening, please help

$(document).ready(function() {         aid = $("#accordid").val();         alert(aid);         if(aid =="")         { // here foreget "{"    aid = 0;         $("#accordioncategory").accordion({             collapsible  : true,             active       : false,             heightstyle  : "content",             navigation   : true,             active: aid         }); }  }); 

Comments

Popular posts from this blog

c++ - Linked List error when inserting for the last time -

java - activate/deactivate sonar maven plugin by profile? -

tsql - Pivot with Temp Table (definition for column must include data type) -- SQL Server 2008 -