[Javascript] IE work-a-round question (re: checkboxes)
Hassan Schroeder
hassan at webtuitive.com
Sat Apr 12 09:22:37 CDT 2008
tedd wrote:
> The offending code is this:
> var id2 = 'c' + id[2] + id[3];
? I've never seen that shorthand before; do you have a reference to
JS treating a String as a byte array?
In any case, you can fix this with a more standard:
var id2 = 'c' + id.charAt(1) + id.charAt(2);
though I probably would use a single id.substring(1) :-)
HTH,
--
Hassan Schroeder ----------------------------- hassan at webtuitive.com
Webtuitive Design === (+1) 408-621-3445 === http://webtuitive.com
dream. code.
More information about the Javascript
mailing list