How to prevent auto initialization of input, button and anchor link elements while including the mobile source file in application?
In Mobile JS core, elements like input, button, anchor tag that doesn’t contain data-role attribute are initiated specifically. Therefore, whenever the mobile source file is referred in the sample, then input, button, anchor tag elements (without data-role attribute) are rendered as respective Mobile JS controls automatically.
However, an option is provided to prevent this auto initialization. To prevent default rendering of Mobile JS controls, set App.renderEJMControlsByDef property as false with the script section as in the following code example.
Script
<script> App.renderEJMControlsByDef = false; </script> |