I have pagination that comes with checkbox in first column and each row.
If any of checkbox is checked it will automatic slidedown full wide box from top, I use jquery here is code...
$(':checkbox').change(function() {
// use the :checked selector to find any that are checked
if ($('#checkbox').length) {
$(".checkbox-tools").animate({top: '0px'});
} else {
$('.checkbox-tools').slideUp('slow');
}
});
<!--Cancel print button.-->
$(document).ready(function(){
$("#cancel-chedkbox").click(function(){
$(".checkbox-tools").animate({top: '-450px'});
$('input:checkbox').removeAttr('checked');
});});
This works great when checked on checkbox and slide down.
What if person UNCHECKED and there is no checked in checkbox and I want to automatic slideup full width box instead of person click close button if there is no checked at all.
How can I solve that!
AM