1
I have some botões
which are mounted dynamically via jquery
, Turns out on the front page I have some events like that botões
, but as they do not yet exist at the time of page loading the events are not loaded, I needed to do something like a refresh in those events so the jquery
were loaded.
Code:
Abre Pagina HTML
$(".meusbtns").click(function...);
Monta HTML Basico
Clica numa lista e essa lista traz o result por um jquery
<button class="meusbtns" value="x">Botao</button>
Notice that the class meusbtns
exite, but as she came by jquery
the event was not initially loaded.
I know there is a way to add and remove classes, which would reset the event, but since these buttons are dynamic I can’t imagine how to do it this way.
I hope I was clear
There are several questions about this... one of them is: http://answall.com/a/36812/129
– Sergio
Another interesting question for this problem is http://answall.com/q/5196/129
– Sergio