Hi
I have a menu made using jquery.I want that when i click on particular parent only child under that parent shud expand all other child under other parent shud get hide.
I have got parent id so based on that i can expand a particular parent.
My code is as follows.
<script>
$(document).ready(function(){
var msg1;
var msg14;
var msg = false;
alert((document.getElementById(''P17_LOCATION_ID'')).value);
alert(msg14);
$(''.dropdown_menu'').click(function(event) {
msg = !msg;
if (msg)'
$(this).parent(''.parent_menu'').find(''.child_menu'').slideDown("slow");
else
$(''.child_menu'').hide();
return false;
});
' });
</script>
Here - $(this).parent(''.parent_menu'').find(''.child_menu'').slideDown("slow");
is responsible for sliding down of child menu for parents but currently all the child menus are expanding which i want to stop and when i click on some parent then child under that parent only shud be displayed so how i can pass the id to this statement above.
Kindly suggest some solution