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

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

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -