I have a HTML anchor that when clicked should make a div slide up or down (I call JQuery\'s .slideToggle();
function);
My Problem: When
instead of write inline JavaScript code, try below. preventDefault method prevents the default action of the element. In your case, it prevents default action of the click event, which is, going to new page
$(".interactiveLink").on("click", function(e){
e.preventDefault();
$('#attachFileContainer').slideToggle();
});
Make your html code as
Attach File