Thanks Eric, solved my problem perfectly. Great solution.

On Jan 23, 2008 10:42 PM, EricC <[EMAIL PROTECTED]> wrote:

>
> $.mask.addPlaceholder('~',"[0,1,3,4]");
> $.mask.addPlaceholder('!',"[0,5]");
> $("#quarterhour").mask("~!");
>
> This won't stop you user from putting in 05,10,35,40  but you can put
> in a callback function to test for those:
>
> $("#quarterhour").mask("~!", {completed:function(){switch (this.val)
> {case "05": case "10": case "35":case "40": this.val = ""}}});
>
> This is untested, I don't currently have access to my own forms, but
> you get the idea.
>
> Eric
>
>
>
>
>
>
> On Jan 23, 4:53 am, "Bruno Eustáquio F. Andrade" <[EMAIL PROTECTED]>
> wrote:
> > How accept only the minutes 00, 15, 30, 45 using the masked input plugin
> for
> > hour?thanks.
>

Reply via email to