Is there a better, more jQuery-ish way of handling this image substitution?
var image = $(obj).children(\"img\"); if ($(image).attr(\"src\") == \"Images/TreeColl
More jQueryish? Maybe! Clearer? I'm not sure!
var image = $(obj).children("img"); $(image).toggle( function () { $(image).attr("src", "Images/TreeExpand.gif");}, function () { $(image).attr("src", "Images/TreeCollapse.gif");} );