[jQuery] digitalBush Plugin newbie...losing text onblur()
Hey,
My boss talk to me about Jquery, never done that before. We need to
mask HTML input for phone number and date fields.
So, I found this plugin digitalBush MaskInput and it works great but I
don't know why, i'm losing the data in the field when the input loses
the focus.
<html>
<script>
function geredate(id){
$.noConflict( )
jQuery(function($){
$("#"+id).mask("9999/99/99");
});
}
function geretel(id){
$.noConflict( )
jQuery(function($){
$("#"+id).mask("(999)999-9999");
});
}
</script>
</head>
<body>
Telephone: <input TYPE=TEXT id="tel"
onclick="geretel('tel')">
<br/>
DDN: <input TYPE=TEXT id="ddn" onclick="geredate('ddn')" >
</body>
</html>
So, if anyone can help me, it would be very appreciate
Thank