How can i display ine form at tine within same page | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can i display ine form at tine within same page

Suppose I have index.html and it have 2 forms like login form and sign up form but I want too display 1 form at a time and change them on button click event. So can anybody help me too doo this

19th Dec 2020, 5:12 PM
brijal kansara
brijal kansara - avatar
1 Answer
+ 13
If you wish to create login and sign up form on two different pages: You can create a hyperlink in Login form which can take you to Sign Up form. Similarly you can create another hyperlink in Sign Up form which taken you to Login form. If you wish to put both the forms in a single web page. Then you can make display of one form to block and another form to none using CSS and toggle the display of these two forms using onclick event.
19th Dec 2020, 5:38 PM
Nova
Nova - avatar