[Kss-devel] attach text on existing text in input tag
Godefroid Chapelle
gotcha at bubblenet.be
Thu Sep 4 10:03:07 CEST 2008
Hedley Roos wrote:
> The easiest way is to use replaceHTML or replaceInnerHTML to replace
> the entire <input> with a new value attribute.
Right. But this should happen server-side. There is no way to do
computation with KSS.
>
> If your input had focus then it is more difficult, since replacing the
> tag will mean losing focus. In such a case you will have to write your
> own plugin.
>
> Hedley
There is a 'focus' action that you add as a second action : it will be
executed after the replaceHTML.
--
Godefroid Chapelle (aka __gotcha) http://bubblenet.be
More information about the Kss-devel
mailing list