"a.parentNode is undefined" error in this jquery function...
- by Pandiya Chendur
I use the following jquery pagination plugin and i got the error a.parentNode is undefined when i executed it...
<script type="text/javascript">
$(document).ready(function() {
getRecordspage(1, 5);
$(".pager").pagination(17, { callback: pagechange,
current_page: '0', items_per_page: '5', num_display_entries
: '5', next_text: 'Next', prev_text: 'Prev', num_edge_entries: '1'
});
});
function pagechange()
{
$(this).addClass('current').siblings().removeClass('current');
$("#ResultsDiv").empty();
$("#ResultsDiv").css('display', 'none');
getRecordspage($(this).text(), 5);
}
</script>
and in my page,
<div id="ResultsDiv" style="display:none;">
</div>
<div id="pager" class="pager">
</div>
Any suggestion....