私は別の関数validateFormの中で関数notEmptyを呼び出そうとしています。しかし、私はこの関数のセレクタを渡す必要がありますし、フォームを送信した後。サブミットボタン内の関数を呼び出す
は見てみましょう:
$("#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?
}
「セレクタ」とは何ですか? –
フォーム – KillCloud