Hide pagination bar when page <= 1

Hide pagination bar when page <= 1

syveensyveen Posts: 1Questions: 0Answers: 0
edited January 2011 in General
Is there any good solution to do this except the way below?
if ($('#example_paginate>span').length <= 5) {
$('.dataTables_paginate').hide();
}
else {
$('.dataTables_paginate').show();
}
This discussion has been closed.