Ask coding questions

← Back to all posts
help with login button
syflexer

so on the login page of my website i cant get the login button to make the form i wrote in javascript to show up

Voters
51LV3RC0D3R
syflexer
Comments
hotnewtop
Coder100

Form elements override js
So
Have to add preventDefault

syflexer

@Coder100 i will try it that tomarow

syflexer

@Coder100 it didnt work sadly

Coder100

You put it in the wrong place @syflexer

Coder100

Put it outside of the function @syflexer

syflexer

@Coder100 ok i will try that

syflexer

@Coder100 that still doesnt work for some reason i think i am just bad lol

51LV3RC0D3R

Here is an example that worked for me.

syflexer

@51LV3RC0D3R it needs to be through the java script on login.php and it has to have all the form stuff the standared button stuff wouldnt work properly for the purpose