diff --git a/src/modify.html b/src/modify.html index a168282..59fc8dd 100644 --- a/src/modify.html +++ b/src/modify.html @@ -12,7 +12,7 @@
- @@ -58,6 +58,16 @@ document.getElementById('formStatus').innerHTML = "Please select a field to modify"; } } + + function selectField(){ + const field = document.getElementById('field').value; + const value = document.getElementById('value'); + if(field === 'mail'){ + value.type = 'email'; + } else { + value.type = 'text'; + } + }