I would take it as undesired behaviour. but the reason is obvious.
So, if the .html(number) is variable, you could workaround it by
forcing it to eval as string: .html("" + number)
I'm not sure, but it seems to be ok.
Iair.

On 16 jun, 21:02, Lowell <[EMAIL PROTECTED]> wrote:
> When I call html(5) it will set the innerHtml of my element(s) to "5".
> However, zero seems to work differently. When I call html(0), it
> removes the contents of my element(s) and does not append anything. I
> had hoped after a call to html(0), that html() would return "0".
>
> Is this the expected behavior, or is this a bug?
>
> Thanks,
> Lowell

Reply via email to