Get_html is null or undefined

2 posts, 1 answers
  1. Matt
    Matt avatar
    92 posts
    Member since:
    Jun 2012

    Posted 21 May 2013 Link to this post

    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);
  2. Answer
    Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 22 May 2013 Link to this post

    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.
Back to Top