Hi,
I want my sub menu active when ever i am clicking the sub menu and redirecting to another page using html and jquery.
but here in my case it is getting collapse.please do advise..here is my js and css
$(document).ready(function () {
$("#accordion > li > div").click(function () {
if (false == $(this).next().is(':visible')) {
$('#accordion ul').slideUp(300);
}
$(this).next().slideToggle(300);
});
$('.sub-menu1').click(function () {
$('ul:eq(0)').show();
});
Regards,
Hari
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Amit Prajapati31 reputationPosted Jan 11, 2017, 10:57 AM EST
Hari ShankerRank #7,001 · 251 reputationPosted Jan 11, 2017, 7:44 PM EST
Bikesh SrivastavaRank #109 · 20.3K reputationPosted Jan 11, 2017, 8:42 PM EST