+ 1

If else problem

https://code.sololearn.com/Wvh95Dc2q8ue/?ref=app After clicking on sign up in the login page and then a registration form is visible but in that I want that the password nd repeat password should be same nd after filling all the input fields rgpg id should be closed nd div vd having scs id should be opened..... Blank page shouldn't be opened until the above conditions are satisfied.....

15th Aug 2021, 2:06 PM
Rani Devi Priyanka Gollakoti
Rani Devi Priyanka Gollakoti - avatar
8 ответов
+ 4
The <form> element has two important attributes: action and method. - action specifies a URL that processes the form submission. In this example, the action is the /signup URL. - method specifies the HTTP method to submit the form with. The method is either post or get. * action – is the URL that processes the form data. It is equivalent to the action attribute of the <form> element. * method – is the HTTP method which is equivalent to the method attribute of the <form> element.
15th Aug 2021, 2:40 PM
JaScript
JaScript - avatar
15th Aug 2021, 2:19 PM
Pariket Thakur
Pariket Thakur - avatar
+ 2
In Facebook after registration it'll redirect to another page which displays registration successful so I want to create lyk dat but it is not getting according to my wish. Nd after using onsubmit also it shows the same issue lyk before...... So pls can you solve this problem.....
15th Aug 2021, 2:32 PM
Rani Devi Priyanka Gollakoti
Rani Devi Priyanka Gollakoti - avatar
+ 2
Can you please edit the code based on my requirements nd can you repost the code......
15th Aug 2021, 2:44 PM
Rani Devi Priyanka Gollakoti
Rani Devi Priyanka Gollakoti - avatar
+ 2
Priyanka___Priya__ here you can learn all about forms and much more. Please see this example: https://www.w3schools.com/js/js_validation.asp
15th Aug 2021, 2:57 PM
JaScript
JaScript - avatar
+ 2
Priyanka___Priya__ u can use event.preventDefault(); to prevent while submission U can review the code i have edited right now And do same with form 1
15th Aug 2021, 3:06 PM
Pariket Thakur
Pariket Thakur - avatar
+ 1
Tq veryyyy much it's now working...... 🤗
15th Aug 2021, 3:17 PM
Rani Devi Priyanka Gollakoti
Rani Devi Priyanka Gollakoti - avatar
0
Priyanka___Priya__ why do u marked my answer as Best The best answered was given by JaScript I gave u just answer but @JaScript give u the explanation which is good Direct Answer is not good but What all u want is explanation
15th Aug 2021, 4:27 PM
Pariket Thakur
Pariket Thakur - avatar