Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
310
How to get WebTextEditor value inside the WebTab control using Javascript
posted

Hi i have used one WebTabControl. Inside the WebTabControl i placed one WebTextEditor so now how can i get the WebTextEditor value using Javascript.

Anybody suggest the solution please.

Thanks

  • 17590
    Offline posted

    Hello Bala,

    Thank you for contacting Infragistics Developer Support.

    What I can suggest for achieving your requirement is using the ClientID property to get reference to the editor. This property gets the control ID from HTML markup that is generated by ASP.NET. Afterwards, by using the get_value() method the value could be retrieved. 

    I made a small sample project illustrating my suggestion and I am attaching it for your reference. In my sample on a button click alert with the current value of the editor is displayed as such:

    function getEditorID() {

    var editor = $find("<%=WebTextEditor1.ClientID%>");

    var editorValue = editor.get_value();

    alert("The value of the editor is " + editorValue);

    }

    I am attaching my sample for your reference.

    Please let me know if you have any additional questions regarding this matter.

    Regards,

    Vasya Kacheshmarova

    Developer Support Engineer

    Infragistics

    WebTabWithTextEditor.zip