We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

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>

Article ID: Published Date: Last Revised Date: Platform: Control:
4951 05/23/2015 05/23/2015 JavaScript General
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.