[jQuery] how Jquery to get this json data ?

2009-03-06 Thread YuanYuan
I want get a json data, but alaways err. anyone know, how to get softwareList.for001.id ? or get softwareList for001~for002 text ? r({ "softwareList": [ {'for001': {id:'for001', sType:'s', name:'test', fsize:'5MB', link:'a.b.c', revisionLog:['test'], programName:'a.exe'} },

[jQuery] Re: about siblings().removeClass with td:first-child problem ? anyone help, thanks.

2008-08-18 Thread YuanYuan
Oh, I got it. this is my way. $('tr td:first-child').removeClass('selected'); $(this).addClass('selected');

[jQuery] about siblings().removeClass with td:first-child problem ? anyone help, thanks.

2008-08-18 Thread YuanYuan
I have one table, I want click td:first-child then change td:first- child's background color, when click the td-first-child , td background color change, but when I click other td:first-child, the removeClass not work correct, anyone help ? thanks. my script: $(document).ready(function(){ $("di