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
1490
.val() not filled by IgniteUI editors?
posted

I've seen a couple of previous posts about this, but wanted to clarify the current situation. I can see that in some circumstances the igniteUI editors update the input "val()" when the "value" of the editor is changed. However, this doesn't seem to happen consistently or every time. There are times I can type a value into the igEditor and then check .val() on it and .val() is empty. This causes problems if you are using jquery validation instead of igniteUI validation. Should the igEditors be updating .val(), and if so, is there a trick to get it to work consistently? 

Parents
No Data
Reply
  • 37874
    posted

    Hello Ryan,

    Instead of the jQuery val() method, I would suggest you to use the igEditors 'value' option, for example:

    var val = $('#editor').igTextEditor('option', 'value');

    This should work consistently in all scenarios.

    Please let me know if you have any further questions.

Children