javascript - opening a specific section on an accordion from another page link -
javascript - opening a specific section on an accordion from another page link -
i have homepage has 2 titles on. these titles link page (news.aspx). news articles on news.aspx stored in accordion style.
what want is: when title of news article clicked on homepage, redirect news.aspx page , accordion section relating title open.
is there way can done please?
i know need create function ()
im not sure how go it.
put on load
if (convert.toint32(request.querystring["lb"]) == 0) { myaccordion.selectedindex = 0; } else if (convert.toint32(request.querystring["lb"]) == 1) { myaccordion.selectedindex = 1; }
here accordian
<asp:accordion id="myaccordion" runat="server" selectedindex="0" head
send index querystring of page redirecting.
javascript jquery asp.net
Comments
Post a Comment