Form validation with javascript | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
0

Form validation with javascript

Hi I designed a registration form I used javascript to make the mobile number validation. Is it enough or maybe hacked by the browser?

12th Feb 2019, 3:28 AM
🇮🇷Mostafa 9112🇮🇷
🇮🇷Mostafa 9112🇮🇷 - avatar
2 Antworten
+ 5
When you set the onclick event listener to the submit button, it send you an argument, you can use that to prevent redirection, get the value of inputs and check that: https://code.sololearn.com/WT4cnRoeLq6t/?ref=app
12th Feb 2019, 5:37 AM
InvBoy [ :: FEDE :: ]
InvBoy [ :: FEDE :: ] - avatar
0
I mean, if I do validation with javascript, is it okay for my security? Not hacked?
12th Feb 2019, 8:25 AM
🇮🇷Mostafa 9112🇮🇷
🇮🇷Mostafa 9112🇮🇷 - avatar