I use digitalbush a hidden input plugin , and I was wondering if you could add a default value to the masked fields.
I tried to add it using:
<input id = "date" type="text" value="DD/MM/YYYY" onfocus="this.value = this.value=='DD/MM/YYYY'?'':this.value;" onblur="this.value = this.value==''?'DD/MM /YYYY':this.value;">
but after applying disguise through
<script type="text/javascript"> $(document).ready(function(){ $("#date").mask("99/99/9999", {placeholder:"#"}); }); </script>
The default HTML value no longer works.
source share