Hello,
I'm new to JQuery (and JavaScript/AJAX in general) and am encountering a problem with hiding elements.
When I use the code below the animation works and the element is hidden but as it is being hidden it is shifted onto a new line along with everything after it. This happens with horizontal hide as well but not with opacity.
Is there a way to stop this from happening or am I missing something out somewhere? The links appear on a line like this:
Related Tags: Tag1 Tag2 Tag3
Code Snippets:
HTML
<script type="text/javascript" src ="JQuery.js"></script>
<script type="text/javascript" src ="test.js"></script>
<strong>Related Tags: </strong>
<a href=#>Tag1</a>
<a href=#>Tag2</a>
<a href=#>Tag3</a>
JS
$(function() {
$("a").click(function(event){
event.preventDefault();
$(this).animate({height: 'hide' },"Fast");
});
});
Thanks in Advance,
Dave