Question:
Is it possible to automatically add a dash \"-\" in auto complete?
Let say I have a phone number field and if someone will type their phone number
$('#phone-number-field').keyup(function(){ $(this).val($(this).val().replace(/(\d{3})\-?(\d{3})\-?(\d{4})/,'$1-$2-$3')) });