Hm, you empty it and then append to it? wouldn't that be the same as
using .html(val)? If that is what you'd want to do, try the .text()
command:
$(this).parents("div.sidebarToDo").find("td.sidebarText").text(val)

contents of "td.sidebarText" will be replaced with val

On 2/22/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi, I want to append text to a node.  I'm using this code
>
> $(this).parents("div.sidebarToDo").find("td.sidebarText").empty().append(val);
>
> but if the variable "val" contains special characters, like "<td>", that will 
> mess up the rest of my tree.  What is the best way to handle this?
>
> Thanks, - Dave
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
>

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to