2016-09-15 32 views
0

我正在使用Telerik控件RadNumericTextBox,我想在javascript函数中设置空字符串“”。在javascript中设置“”到radcontrols

如何在上面的代码做了下面的代码

$find('<%= FindControl("txtAmount").ClientID %>').value = ""; 

需要纠正的。

+0

是我的问题不明确或者看上去傻 –

回答

0
$find('<%= FindControl("txtAmount").ClientID %>').set_value(""); 
0

的Javascript

document.getElementById('txtAmount').value = ''; 

jQuery的

$('#txtAmount').val(''); 

试试这个