[jQuery] Re: Simple problem with createElement

2009-04-29 Thread Code Daemon
The main problem is, since the fields can be updated very quickly. There could be multiple "sending. . ." tags next to input boxes. With the fadeout, this will produce strange results if I just move it around. Also, I just tried the method you described and it only works the first time. On Apr

[jQuery] Re: Simple problem with createElement

2009-04-28 Thread brian
You're not actually removing the span, though. It might be better to create it once, then move it wherever as needed. // inside $(document).ready() $('').attr("id", "fieldstatus") .addClass("fieldstatus") .appendTo('body'); ... // inside your event handler $('#fieldstatu

[jQuery] Re: Simple problem with createElement

2009-04-28 Thread Code Daemon
Here is how I fixed it: 1) I needed to use remove() instead of empty() 2) To avoid conflicts in the the id, I appended (new Date()).getTime() to each id to make sure all the id's are unique. Now when I create a bunch of elements really quickly, they all disappear eventually. On Apr 28, 7:10