0

Date box with mask and water mark

asked 2012-07-26 14:14:36 +0800

Senthilchettyin gravatar image Senthilchettyin flag of India
2611 3 8
http://emrpms.blogspot.in...

Hi

By Extending ZK Textbox, i have created date box which will have masking and water mark for the date field.

You can see the example here
http://emrpms.blogspot.in/2012/07/my-date-box-component.html

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2013-09-09 09:49:33 +0800

pasqualeleone gravatar image pasqualeleone flag of Italy
81 2

hi Senthilchettyin, I also need to mask a datebox for my project. Your example is very interesting, but wonder if it is possible to directly use the component datebox mask it with jQuery.

link publish delete flag offensive edit

answered 2015-02-16 13:18:35 +0800

chillworld gravatar image chillworld flag of Belgium
5322 4 9
https://github.com/chillw...

updated 2015-02-18 08:22:24 +0800

You can (tested in ZK 6.5.x) :

jq("@datebox > input").mask("dd/mm/yyyy"); // all datebox get this mask

jq("$date > input").mask("dd/mm/yyyy"); // only datebox with that id get mask

Don't forget to put definitions or use 9

Link to fiddle.

Greetz chill.

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

Follow

RSS

Stats

Asked: 2012-07-26 14:14:36 +0800

Seen: 100 times

Last updated: Feb 18 '15

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