$(this).parent().slideUp();

On Dec 17, 2007 12:41 PM, Lourenço <[EMAIL PROTECTED]> wrote:
>
> Hello,
>
> i need get the this's parent div, something like this:
>
> <div>
>   <a href="#" class="close">Close</a>
> </div>
>
> and in code..
> $(".class a").click(function(){
>   $(this < div).slideUp(); //here
> });
>
> that way many buttons will work with no ids and with the same code!
> how can i do it?
> i don't wanna use ids...
>
> sorry my bad english
> thanks!
>

Reply via email to