$('.submenuA').toggle(
function () { $(this).next('div').show(); },
function () { $(this).next('div').hide(); })