I have a project in school and i want to add some login functions. know im planning to make an external js and there i will get the input of the user.In the login button i will put there the username input but how do i cancel the funtion if the users input is null and where should i put these method THANKS FOR THE FUTURE HELP :) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I have a project in school and i want to add some login functions. know im planning to make an external js and there i will get the input of the user.In the login button i will put there the username input but how do i cancel the funtion if the users input is null and where should i put these method THANKS FOR THE FUTURE HELP :)

RUSH RUSH RUSH!!

1st Sep 2016, 1:49 PM
Thomas Oviedo
Thomas Oviedo - avatar
2 Answers
+ 1
Just use an if to check if the input is not an empty string (if (input != "") {/*do stuff*/}).
2nd Sep 2016, 12:41 PM
Zen
Zen - avatar
0
in these website i will change the login(thats a link )by the user input and then if i click ther username it will call the link that ive a sign to login how do i change that?
2nd Sep 2016, 1:29 PM
Thomas Oviedo
Thomas Oviedo - avatar