djhi/meteor-autoform-materialize

Input label overlapping with dynamic generated value

cmastery opened this issue · 0 comments

Greetings! I have the following html (a modal):

                <div class="input-field col s6">
                    <input id="inputIdName" type="text" class="validate" name="sliderTitlu"/>
                    <label for="inputIdName" class="active" id="inputIdNameLabel">Name</label>
                </div>

And I generate input value by $.getJSON function, and the value of input and the label is overlapped.

I have also tried to fix it with class=active on the label and $("#inputIdNameLabel").focus(), but with no working result.