# Re: Help with an RJS

**URL:** <https://www.ruby-forum.com/t/re-help-with-an-rjs/152204>\
**Category:** Rails\
**Created:** [October 31, 2008, 9:21am UTC](https://www.ruby-forum.com/t/re-help-with-an-rjs/152204 "2008-10-31T09:21:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![fcheung](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/90db22/32.png) [@fcheung](https://www.ruby-forum.com/u/fcheung)\
**Post date:** [October 31, 2008, 9:21am UTC](https://www.ruby-forum.com/t/re-help-with-an-rjs/152204/1 "2008-10-31T09:21:03Z")

</div>

Sent from my iPhone

On 30 Oct 2008, at 22:35, elioncho [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I added the () but that’s not the problem. I added the next alert and  
> it shows the events length. But if I remove another event it still  
> shows the same number.

Well it was syntaxtically incorrect javascript. Effects like fade  
don’t remove elements from the page, they just hide then. You could  
remove them after the fade.

Fred
