Open KrishnaMurariVijay opened 9 years ago
could you show me a code snippet?
I seem to have the same problem. As a response to user input I create dynamic elements as html strings which I add with getelementbyId. e.g.: 'strBeoord += '\n';'
When i put "" directly on my html page it works fine!
Sounds like you need to use a delegated event for the init. Anything added to the DOM after DOMready will need to be attached in this manner.
Just a workaround, but after adding the checkbox, use the following (you'll need to adjust the selector to select just the new checkbox you added though):
$('input:checkbox').bootstrapToggle();
When i use on jsp page.It shows button the way it should be shown.But when i add it through javascript he it shows only a checkbox not the toggle button.What is the issue?