0
這是使用進行按鍵的mine.instead的jQuery代碼,當我上輸入其餘文本框中單擊要顯示觸發與jQuery單擊按鈕時輸入按鈕點擊
$("#btnValidateMember").click(function() {
if ($("#txtUserEmail").val() == "") {
$("#txtUserEmail").addClass("error");
//$("#spnUserEmail").text("required");
}
else if($("#spnUserEmail").text() == "")
{
GetMemberDetailsbasedonEmailId($("#txtUserEmail").val());
}
$("#ddlBusinessState").empty().append($("<option/>"));
//$("#ddlBusinessCity").empty().append($("<option/>"));
$("#ddlBusinessState").select2({ placeholder: 'State', allowClear: false });
//$("#ddlBusinessCity").select2({ placeholder: 'City', allowClear: false, width: '366px' });
BindStatesBasedOnCountryId("1",`enter code here` "ddlBusinessState", "");enter code here
});
你的意思是擊中輸入按鈕將觸發點擊'#btnValidateMember'? –