Closed wagnerfillio closed 5 years ago
Have you tried triggering a rebuild after the ajax return and a value is added?
i.e. floatlabels.rebuild()
Please see the usage section in the readme.
Here's how I did it. I declared the variable:
var floatlabels;
Inside the ready
event I wrote the function:
floatlabels = new FloatLabels( 'frm-receita', { style: 1, });
and after the successful ajax response, I added:
floatlabels.rebuild();
But it still does not work!!
send me a link
Hello, playing a page to put the example, I found out where the problem was, do not just add floatlabels.rebuild ()
in the ajax return.
In my case, it was necessary to add after the objeto_form();
success: (function (objeto) { objeto_aviso = objeto; objeto_form(); floatlabels.rebuild(); ret = true; }),
Please close the issue if it is solved.
thank you
I have searched, and found something close to my problem, but it did not solve # 14.
Using a Modal Dialog, I was unsuccessful in displaying the field label.
As the field was populated via an ajax (json) return. its value attribute is always empty.
How can I check this case and display the label correctly for modal dialog?