How to hide DIV in paging

43 views Asked by At

I have an onclick button that removes all DIV a result. But it only removes the DIV's that are in the paging 1. The other results are in paging 2.3 ... etc are not removed. How to solve it?

function removeDiv (){
$('#divPlay').removeClass("visible").addClass("hidden");
}

<a onclick="removeDiv()">Remove</a>

Pagination 1: Ok PAGINATION 1

Pagination 2: Error PAGINATION 2

1

There are 1 answers

0
AudioBubble On

attach event to buttons action pagination. The moment of pagination the content is rendered for display and leftover is destroyed.

$('contentActions').delegate('a','click',removeDiv)