Category / Section
How to find whether the ejmWidgets have been initialized?
1 min read
You can check whether the ejmWidgets have been initialized or not by getting the instance through “data”. Refer the following code example. By running this code you can get the corresponding control object. When it’s not initialized, this code does not return any object value. So, by checking the return value you can check whether it has been initialized or not.
Script
<script> var buttonObject = $('#buttonId').data('ejmButton'); </script> |