2010-03-24 29 views

回答

2

你可以嘗試MaskedInput hosted at Github,看看如果這樣做你需要什麼。我需要一段時間的輸入掩碼,所以在缺乏替代品的情況下,我將digitalBush Masked Input Plugin for jQuery移植到Prototype中。

+0

真是太棒了!謝謝Bjarte! – 2011-09-07 14:35:13

0

嘗試Really Easy Field Validation。您可以通過應用CSS類的輸入字段:)

例如使用它:

<form id="some_form"> 
    <input type="text" name="email" class="validate-email" /> 
</form> 
<script type="text/javascript"> 
    new Validation('some_form'); 
</script>