[jQuery] Endeavour: translating X-Library functionality "click-n-drag checkboxes" into Jquery

[jQuery] Endeavour: translating X-Library functionality "click-n-drag checkboxes" into Jquery


I thought I'd undertake the endeavour of translating into jquery the
neat little "click-n-drag checkboxes" functionality of cross-
browser.com's X-library. This functionality allows for multiple
checkbox selection or de-selection by simply clicking on one of them
and then dragging the mouse over the others.
I began mentioning this in another post, but I figured that perhaps a
new post with the right title would be better. Rather than re-post all
the code though, here's a reference to the message where the full code
of both the X-library functions and my attempted translation of them
is posted:
http://groups.google.com/group/jquery-en/msg/0f38d747d97cf701
I doesn't quite seem to work though, none of my checkboxes are getting
selected either on click or on drag. Any javascript - jquery experts
have any ideas on what needs to be perfected?
When I run it in Internet Explorer, the debugger gives me this
message:
"Cannnot assign to a function result"
and it refers to line 56, which should be the one that sets the
selection:
48 $("td.mychkbox").each(
49 function(){
50 $(this).bind(
51 "mouseover",
52 function(){
53 if (gCheckedValue != null){
54 var eccomi = this;
55 var eccoti = $(eccomi).find("input:checkbox");
56* $(eccoti).attr("checked") = gCheckedValue;
57 }
58 });
59 });