Hello,
I'm trying to fill a RadInput that has an EmptyMessage with jquery but the field keeps the EmptyMessage formatting (gray)(see attachement). Is there a way to do this?
Input code
I'm trying to fill a RadInput that has an EmptyMessage with jquery but the field keeps the EmptyMessage formatting (gray)(see attachement). Is there a way to do this?
Input code
<
asp:CheckBox
ID
=
"Copy"
ClientIDMode
=
"Static"
runat
=
"server"
Text
=
"Copy"
/>
<
telerik:RadTextBox
ID
=
"PHText"
ClientIdMode
=
"Static"
EmptyMessage
=
"optional"
runat
=
"server"
MaxLength
=
"10"
/>
JQuery code
$(
function
() {
$(
'#Copy'
).click(
function
() {
if
($(
this
).is(
':checked'
)) {
$telerik.$(
'#PHText_text'
).val(
'hello world'
);
}
else
{
$telerik.$(
'#PHText_text'
).val(
''
);
}
});
});