Hi,
i have a problem with $find.
I have this function:
And i call it like this:
But everytime
i have a problem with $find.
I have this function:
function chkIfEmpty(parmtxt) {
var rtxtBox = $find(parmtxt);
var val = rtxtBox.get_element().value;
if (!$.trim(val).length) {
$('#imgaccept1').attr('style', 'display:none;');
$('#imgexclamation1').attr('style', 'display:block;');
$('#hfEingabeCheck').val('false')
}
}
And i call it like this:
<
telerik:RadTextBox
ID
=
"rtxtVermittlerName"
runat
=
"server"
Label
=
"Name"
LabelWidth
=
"100px"
Width
=
"350px"
Skin
=
"MetroTouch"
EmptyMessage
=
"Mustermann"
onblur="chkIfEmpty('<%= rtxtVermittlerName.ClientID %>')"></
telerik:RadTextBox
>
But everytime
"parmtxt" is null.
if i write it directly like this: var rtxtBox = $find("<%= rtxtVermittlerName.ClientID %>
");
it works.
What i'm doing wrong?
Thanks for reading.
Daniel