я пытаюсь вызвать функцию notEmpty внутри другой функции validateForm. Но мне нужно передать селектор для этой функции и после отправки формы.
Взгляните:
$("#accountemail").blur(notEmpty);
$("#submit_account").click(validateForm);
function notEmpty()
{
if($(this).val() == "")
{
// Send a warning message
warn($(this), "notEmpty");
return false;
}
else
{
// Remove a warning message
unwarn($(this), "notEmpty");
return true;
}
}
function validateForm()
{
// How i can call the function passing the selector and after submit the form?
}