Add javascript control to a field
Add javascript control to a field
Hello,
is it possible to add a javascript on a field ?
Exemple, I would like to replace on the fly any "," with a "point" when someone write in a text field. I know that i can do that on server side but I prefer to show to the user that he can't use the ",".
Thanks.
is it possible to add a javascript on a field ?
Exemple, I would like to replace on the fly any "," with a "point" when someone write in a text field. I know that i can do that on server side but I prefer to show to the user that he can't use the ",".
Thanks.
This discussion has been closed.
Replies
Example:
[code]
$('input', editor.node('myField')).keydown( function (e) {
// Logic to prevent certain characters
} );
[/code]
Regards,
Allan