Adobe Global Community

Setting the Selected Value in CoralUI 3

Published on by Dan Klco on blogs.perficient.com
Setting the value of a coral-select element in the CoralUI framework v3 is somewhat complicated. It is also different than the process for CoralUI v2 and for standard HTML5 select elements. With standard HTML5 select elements, you can simply use a snippet like this to set the selected value:   $('#my-select').val(value);   This does not work for a coral-select, however, as a coral-select contains several sub-elements to render the look and feel of the select and to see the actual form value.  

Tags



comments powered by Disqus