+ 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.....
8 Answers
+ 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.
+ 2
Use return false
https://code.sololearn.com/Wm2YdmrS2vF8/?ref=app
+ 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.....
+ 2
Can you please edit the code based on my requirements nd can you repost the code......
+ 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
+ 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
+ 1
Tq veryyyy much it's now working...... đ€
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