0
I have the following function:
function paper_collapse() {
$(".collapse-card").paperCollapse();
}
This function is always called when the page is loaded.
$(document).ready(function() {
paper_collapse();
});
Now, through an event click
, I will add some items to the object, and again I will need to call the function paper_collapse
.
It turns out that when I do this, the application has a behavior contrary to what I need, this, because this same function has already been called once in the page load.
What I want to do is, remove the function that was called earlier in page loading.
This is possible ?
Example: $(paper_collapse).unbind();
or .off
Include your code, add new items you mean new elements in the current list items or new items to the list?
– Leandro Angelo
new items to list.
– Wagner Fillio