Here is the code i have and its doing something, just not what i need it to. Any help?
reee = /$('#username').val()/;
if(reee.test($('#password').val()))
i even tried it as
reee = $('#username').val();
if(reee.test($('#password').val()))
my function stops at this if statement if i dont include the / (im kind of new to jquery so im not 100% sure that the / do but i know if i gave a range like /0-9/ it will see if a number is present.
try that…
or
check if password contains usernamewhy not use
indexOf?indexOf returns the position of the string in the other string. If not found, it will return -1.