On Apr 14, 6:38 pm, Lwangaman <donjohn.f...@gmail.com> wrote:
> Only thing here is that the text selection is being canceled on all
> the cells and not just the ones with checkboxes. What do you think is
> better here? I think it's good to leave text selection on other cells
> because they may contain values that the user can copy - paste if
> necessary.

Added a .filter(':has(:checkbox)'), so everything is only applied to
elements which contain a checkbox. Whew! this has gotta be the "most
rewritten" jsbin code snippet ever :D

>so I suppose that would have to be indicated together with the plugin.

You're right, that's very common in plugins which deal with an UI.

>Then just wondering, I don't know all the specs... But why shouldn't
>you use jquery's css method to set css? Will it be deprecated?

No, they won't. It's just a cleaner approach. By leaving style
definitions where they belong (CSS) one can change colors and layout
in the page without having to touch the JS code, even for the
"widgets" used.

cheers,
- ricardo

Reply via email to