-1
我動態經由代碼加載在視圖部分視圖:Jquery的不顯眼如何
$("#typeOfQuestion").load("/Form/TechnicalQuestionPartial");
$(".questionType").click(function() {
var UrlPass;
if ($(this).val() === "techinicalQuestion") {
UrlPass = "/Form/TechnicalQuestionPartial";
// $('#typeOfQuestion').load("/Form/TechnicalQuestionPartial");
} else if ($(this).val() === "suggestion") {
UrlPass = "/Form/SuggestionPartial";
// $('#typeOfQuestion').load("/Form/Suggestion");
}
$.ajax({
url: UrlPass,
success: function (data) {
$('#typeOfQuestion').html(data);
$('#typeOfQuestion').html($("#formTrim").html());
validateAjaxForm();
}
});
});
的問題是,在局部視圖中html.beginform加載並需要進行驗證的部分視圖的一些性質 我使用jQuery的不引人注目的驗證,但它不工作,我需要一個教程,看看它是如何準確地完成
我已經試過了,我仍然無法獲得驗證,我還可以嘗試什麼 – user1503425 2012-07-09 10:39:04
這就是多麼不引人注目的驗證工作。如果這不適合你,我猜你是在做錯事。很難說,沒有顯示完整的代碼可以讓我們重現問題。 – 2012-07-09 11:19:26