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?
Yes, for the moment.
I would suggest you to use the built-in validation as shown here: http://igniteui.com/editors/validation
So jquery validation is not supported with igEditors?
Hi Ryan,
Sorry for the confusion.
The .val() method is not tested for the igEditors and should not be used as it may cause unexpected behaviors.
yes I realize that will be consistent and I realize it exists. However, jquery.validate will not use that obviously. Should we be able to use jquery validation with ig controls? There are times that .val() gets updated correctly - so can you answer my original question? Or am I to take your answer to mean that I can never trust what is in .val() when I use igEditors?
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.