[Kss-devel] how to remove focus from text <input>?
Hedley Roos
hedleyroos at gmail.com
Tue Apr 15 09:34:20 CEST 2008
What happens if you set innerHTML for say a span around your textarea
to an empty string? By this I mean you have <span
id="somespan"><textarea></textarea></span>.
You could also
1. Write a kss plugin which enables you to remove focus from your
server side code. There are examples of this from some sprint which I
cannot recall now.
2. Stick a pice of javascript on your textarea, eg.
onClick=set_focus_to_something_else(). But it may be annoying if you
need inline validation on the textarea since you'll keep losing focus.
In some cases onX javascript events on nodes are executed even though
kss bindings exist for those nodes.
I think (1) is the way to go.
Hedley
More information about the Kss-devel
mailing list