I want to use a input parameter of a javascript function inside jquery command.
function logInEmail(value){
var ati = $("input[name=" + this.value + "]").val();
if(ati.length == 0){
alert("Email cant be empty");
return false;
}else{
return true;
}
}
What is the best way to do it?