in this code i want to have a 09 unchangeable in first textbox and after that i want to have certain dash and when i typed one number one of the dashes disappear . my problems is how can i do that with dashes when user types??
$('#PhoneField').val('---------09');
$("#PhoneField").keydown(function (e) {
var inputValue = $(this).val();
var inputObject = $(this);
setTimeout(function () {
if(inputObject.val().indexOf('09')!== 0){
inputObject.val('09');
}
})
})