hello again.
i got a little problem again.
why i can't clear value or text numberbox element with clear method?
here is my code, i'm sure nothing's wrong with code:
$('#nw').numberbox({
onChange:function(newValue,oldValue){
var nw_val = newValue;
var gw_val = $('#gw').numberbox('getValue');
if (nw_val != "" && gw_val != ""){
if (!isNaN(gw_val) && !isNaN(nw_val)){
if (parseFloat(nw_val) > parseFloat(gw_val)){
$(this).numberbox('clear');
$.messager.alert('Info',"NW must be lower than GW",'info');
}
}
}
}
});
it should clear numberbox value and text. can you tell me maybe where is wrong in my code?
many thanks for the answer.