Passing a value from one function to another in jquery...

Posted by Pandiya Chendur on Stack Overflow See other posts from Stack Overflow or by Pandiya Chendur
Published on 2010-04-01T09:28:51Z Indexed on 2010/04/01 9:33 UTC
Read the original article Hit count: 407

Filed under:
|
|
|

Consider these jquery statements...

 $(document).ready(function() {
             getRecordspage(0, itemsPerPage);
             $(".pager").pagination(maxNumberOfElementsHere, {
                 //my def
             });
         });

I get the value for maxNumberOfElementsHere from getRecordspage function... How to pass that value from getRecordspage function to the next one $(".pager").pagination(maxNumberOfElementsHere.... Any suggestion...

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about function