Skip to content

Commit

Permalink
testing input for mobile devices
Browse files Browse the repository at this point in the history
  • Loading branch information
khalid586 committed Feb 21, 2024
1 parent 19e22eb commit 3f918af
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ function check(){
document.getElementById('passenger_name').addEventListener('input',(event)=>{
name = event.target.value;
check();

if(name.length > 25){
return;
}
document.getElementById('name_text').innerText = name;
})
document.getElementById('passenger_phone').addEventListener('input',(event)=>{
Expand Down

0 comments on commit 3f918af

Please sign in to comment.