"a.parentNode is undefined" error in this jquery function...

Posted by Pandiya Chendur on Stack Overflow See other posts from Stack Overflow or by Pandiya Chendur
Published on 2010-03-31T07:30:13Z Indexed on 2010/03/31 7:33 UTC
Read the original article Hit count: 707

Filed under:
|
|
|

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....

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about parentnode