[英]set constraints on dijit.form.ValidationTextBox
我正在調用一個函數onblur ..該函數調用一個ajax和那個ajax獲取字符串..
現在我想如果字符串中的值可用..然后文本框變為紅色..
我的ajax代碼是
function ucheck(){
dojo.xhrPost({
// The URL to request
url: "ucheck",
timeout : 3000 ,
content: {
username: dojo.byId("pref_id").value
},
// The method that handles the request's successful result
// Handle the response any way you'd like!
load: function(result) {
var fi=result;
document.getElementById('co').innerHTML=fi // this is print the value in lable
}
});
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.