[jQuery] Re: forcing string literals

2007-08-03 Thread Todd Harris
Aha! Much thanks, Klaus! On Aug 3, 1:38 pm, Klaus Hartl <[EMAIL PROTECTED]> wrote: > Todd Harris wrote: > > Hi all - > > > I have a JSON response with a parameter like > > > count: 0; > > > But if I try appending this value in a chained command, jQuery > > interprets this as false and not a stri

[jQuery] Re: forcing string literals

2007-08-03 Thread Klaus Hartl
Todd Harris wrote: Hi all - I have a JSON response with a parameter like count: 0; But if I try appending this value in a chained command, jQuery interprets this as false and not a string literal. eg $("counts_col").append(json.count); Is there a trick to making 0 a string literal and not a