var thisPage = 0;var Pagetype = 0;$(function() { $.ajaxSetup({cache:false, async:false}); $("#btnSearch").click(function() { Pagetype = 1; thisPage = 0; $("#txtGoPage").val(""); search(); }); search();callBackPagination();