This is a migrated thread and some comments may be shown as answers.

Get_html is null or undefined

1 Answer 70 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Matt
Top achievements
Rank 1
Matt asked on 21 May 2013, 08:36 PM
I'm trying something very simple. I'm using a custom validator that needs to check the length of the RadEditor. I'm using Q1 2013.

Any ideas???

I get this:

Error: Unable to get value of the property 'get_html': object is null or undefined

From this:
alert($find("#<%=RE_ChangeComments.ClientID%>").get_html().length);

1 Answer, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 22 May 2013, 05:16 AM
Hi,

I have tried the following code to get the length.
JS:
alert($find("<%= RadEditor1.ClientID %>").get_html().length);
Note: No need of '#' to access the control in javascript.

Thanks,
Princy.
Tags
Editor
Asked by
Matt
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or