Lower Case Textfield

asked 2010-02-12 17:35:58 +0800

balamurugan32000 gravatar image balamurugan32000
111 2

Is there a lower case text field available in zk?
If not, how to achieve it using textbox component?

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2010-02-12 18:05:24 +0800

kesavkolla gravatar image kesavkolla
180 3

You can setup jquery to do that.

<textbox id="txtInput" />

Once you have the textbox you can setup jquery to handle the conversion of case.

$("$txtInput").keypress(function(evt) {
        $(this).val($(this).val() + String.fromCharCode(evt.which).toLowerCase());

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools




Asked: 2010-02-12 17:35:58 +0800

Seen: 326 times

Last updated: Feb 12 '10

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More