After incorporating this feature into my website following a previous inquiry, I am encountering an issue with the dropdown box unexpectedly scrolling upwards in Firefox and IE browsers. It's baffling me!
If you click on News Feed, the dropdown is supposed to appear below but instead, it shoots back up on its own. The correct behavior should be for it to drop down on News Feed click and retract when clicking on News Feed again or outside the box. However, it's not functioning as expected, reverting back up abruptly.
I'm utilizing JavaScript for this functionality. Could someone shed some light on what might be causing this unexpected behavior?
$('#bottom').click(function() {
$('#content').slideDown();
});
$(document).click(function(e) {
if (e.target.id !='bottom') {
$('#content').slideUp();
}
});