I'm generating some HTML at runtime and I'm wondering how to make a plugin work on the newly created HTML. I've got something that looks llike this:
<input type="text" class="SomeClass">
<div id="Test"></div>
<script>
    function Start() {
        setTimeout(function () {
            $('#Test').html('<input type="text" class="SomeClass">');
        }, 1000);       
    }
    $(".SomeClass").SomePlugin();
    $(Start);
</script>
The input element has all the functionalities of the plugin but when I add the HTML inside the Test div the input element inside there doesn't work as expected. How can I use the plugin on dynamically generated HTML?
 
     
     
     
    