Удаление телефона (очистка поля)

This commit is contained in:
2024-11-21 16:47:32 +05:00
parent 9e9c7bffdd
commit 0b4a808b4c
3 changed files with 17 additions and 2 deletions
@@ -15,6 +15,12 @@
color: orange;
}
.x-icn::before {
font-family: 'Font Awesome\ 5 Free';
content: "\f00d";
font-weight: 900;
}
.m-off::before{
margin: 0px !important;
}
+5 -1
View File
@@ -370,6 +370,10 @@ $(document).ready(function(){
});
});
$('#clear_tel').click(function(){
phoneStr = '';
phoneInput.value = formatPhoneString();
})
@@ -412,7 +416,7 @@ $(document).ready(function(){
else
deleteMode = false;
});
7
phoneInput.addEventListener('input', (e) => {
if (deleteMode) {
phoneInput.value = phoneInput.value;