When using MDL (material-design-lite) my textfields aren't working, if i create them using JS after the page is already fully loaded.
So for example:
$('.container').append('<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label mdl-layout--padding-bottom-0">' +
'<input class="mdl-textfield__input" type="text" id="#ssid" name="ssid" required>' +
'<label class="mdl-textfield__label" for="ssid">SSID</label>' +
'</div>');
After the textfield code has been appended to the container, everything looks fine. But clicking the textfield won't float the label, the normal glow around the textfield will be displayed.
Hope you understand where I'm going with this.