Should i create a login from without html from tag?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Should i create a login from without html from tag??

i m creating a login and sign page with MVC and ajax and to post data I'm using j query Ajax. should i do that?? or is it right thing to do??

27th Apr 2022, 4:34 AM
Ayan Poddar
Ayan Poddar - avatar
3 Answers
+ 2
Yes, you can create a working form without form tag. just use 'onclick' attribute in the submit button which will trigger some functions on button click.
27th Apr 2022, 10:52 AM
Arnav Gumber
Arnav Gumber - avatar
+ 1
Arnav its not about possible or not. I'm asking for should i do it or not.. but any way thanks for the help..
2nd May 2022, 9:07 AM
Ayan Poddar
Ayan Poddar - avatar
+ 1
Yes, but it's not the traditional way to submit the forms. But honestly, I don't use the form tag in almost all of my forms. Summary- both are correct and widely used.
2nd May 2022, 9:10 AM
Arnav Gumber
Arnav Gumber - avatar