{"id":6471,"date":"2024-01-11T16:46:00","date_gmt":"2024-01-11T16:46:00","guid":{"rendered":"https:\/\/codehim.com\/?p=6471"},"modified":"2024-01-22T14:47:33","modified_gmt":"2024-01-22T09:47:33","slug":"simple-table-pagination-javascript","status":"publish","type":"post","link":"https:\/\/codehim.com\/vanilla-javascript\/simple-table-pagination-javascript\/","title":{"rendered":"49+ Simple Table Pagination JavaScript Demo Download Tutorial"},"content":{"rendered":"<p>This JavaScript code snippet helps you to create simple table pagination. It allows you to define table rows per page and generate paging accordingly. You need to create an HTML table element with rows and columns then this pagination plugin automatically renders pages for it.<\/p>\n<h2>How to Create Simple Table Pagination JavaScript<\/h2>\n<p>1. First, create the HTML table element with a unique id and place your data inside it.<\/p>\n<pre class=\"prettyprint linenums lang-html\"> &lt;table id=\"myTable\"&gt;\r\n\t&lt;tr&gt;\r\n\t\t&lt;th&gt;Head col 1&lt;\/th&gt;\r\n\t\t&lt;th&gt;Head col 2&lt;\/th&gt;\r\n\t&lt;\/tr&gt;\r\n\t&lt;tr&gt;\r\n\t\t&lt;td&gt;CodeHim&lt;\/td&gt;\r\n\t\t&lt;td&gt;Free HTML CSS&lt;\/td&gt;\r\n\t&lt;\/tr&gt;\r\n\t&lt;tr&gt;\r\n\t\t&lt;td&gt;JavaScript&lt;\/td&gt;\r\n\t\t&lt;td&gt;Code &amp; Scripts&lt;\/td&gt;\r\n\t&lt;\/tr&gt;\r\n\t&lt;tr&gt;\r\n\t\t&lt;td&gt;row #3 col1&lt;\/td&gt;\r\n\t\t&lt;td&gt;row #3 col2&lt;\/td&gt;\r\n\t&lt;\/tr&gt;\r\n\t&lt;tr&gt;\r\n\t\t&lt;td&gt;row #4 col1&lt;\/td&gt;\r\n\t\t&lt;td&gt;row #4 col2&lt;\/td&gt;\r\n\t&lt;\/tr&gt;\r\n\t&lt;tr&gt;\r\n\t\t&lt;td&gt;row #5 col1&lt;\/td&gt;\r\n\t\t&lt;td&gt;row #5 col2&lt;\/td&gt;\r\n\t&lt;\/tr&gt;\r\n\t&lt;tr&gt;\r\n\t\t&lt;td&gt;row #6 col1&lt;\/td&gt;\r\n\t\t&lt;td&gt;row #6 col2&lt;\/td&gt;\r\n\t&lt;\/tr&gt;\r\n\t&lt;tr&gt;\r\n\t\t&lt;td&gt;row #7 col1&lt;\/td&gt;\r\n\t\t&lt;td&gt;row #7 col2&lt;\/td&gt;\r\n\t&lt;\/tr&gt;\r\n\t&lt;tr&gt;\r\n\t\t&lt;td&gt;row #8 col1&lt;\/td&gt;\r\n\t\t&lt;td&gt;row #8 col2&lt;\/td&gt;\r\n\t&lt;\/tr&gt;\r\n\t&lt;tr&gt;\r\n\t\t&lt;td&gt;row #9 col1&lt;\/td&gt;\r\n\t\t&lt;td&gt;row #9 col2&lt;\/td&gt;\r\n\t&lt;\/tr&gt;\r\n\t&lt;tr&gt;\r\n\t\t&lt;td&gt;row #10 col1&lt;\/td&gt;\r\n\t\t&lt;td&gt;row #10 col2&lt;\/td&gt;\r\n\t&lt;\/tr&gt;\r\n\t&lt;tr&gt;\r\n\t\t&lt;td&gt;row #11 col1&lt;\/td&gt;\r\n\t\t&lt;td&gt;row #11 col2&lt;\/td&gt;\r\n\t&lt;\/tr&gt;\r\n&lt;\/table&gt;<\/pre>\n<p>2. After that, define the CSS styles for the table and pagination as follows:<\/p>\n<pre class=\"prettyprint linenums lang-css\">* {\r\n  margin: 0;\r\n  padding: 0;\r\n  text-align:center;\r\n}\r\n\r\nbody {\r\n  background-color: #fafafa;\r\n}\r\n\r\ntable {\r\n  color: #333;\r\n  font-size: .9em;\r\n  font-weight: 300;\r\n  line-height: 40px;\r\n  border-collapse: separate;\r\n  border-spacing: 0;\r\n  border: 2px solid #ed1c40;\r\n  width: 500px;\r\n  margin: 50px auto;\r\n  box-shadow: 0 4px 8px 0 rgba(0,0,0,.16);\r\n  border-radius: 2px;\r\n}\r\n\r\nth {\r\n  background: #ed1c40;\r\n  color: #fff;\r\n  border: none;\r\n}\r\n\r\ntr:hover:not(th) {background-color: rgba(237,28,64,.1);}\r\n\r\n\r\ninput[type=\"button\"] {\r\n\ttransition: all .3s;\r\n    border: 1px solid #ddd;\r\n    padding: 8px 16px;\r\n    text-decoration: none;\r\n    border-radius: 5px;\r\n\tfont-size: 15px;\r\n}\r\n\r\ninput[type=\"button\"]:not(.active) {\r\n\tbackground-color:transparent;\r\n}\r\n\r\n.active {\r\n\tbackground-color: #ff4d4d;\r\n\tcolor :#fff;\r\n}\r\n\r\ninput[type=\"button\"]:hover:not(.active) {\r\n\tbackground-color: #ddd;\r\n}<\/pre>\n<p>3. Finally, add the following JavaScript code and done.<\/p>\n<pre class=\"prettyprint linenums lang-js\">\/*\t\t=================================\r\n**\t\t==== Simple Table Controller ====\r\n**\t\t=================================\r\n**\r\n**\r\n**\t\t\tWith Pure JavaScript .. \r\n**\t \r\n**\r\n**\t\tNo Libraries or Frameworks needed!\r\n**\r\n**\r\n**\t\t\t\tfb.com\/bastony\r\n**\t\r\n*\/\r\n\r\n\r\n\r\n\/\/ get the table element\r\nvar $table = document.getElementById(\"myTable\"),\r\n\/\/ number of rows per page\r\n$n = 5,\r\n\/\/ number of rows of the table\r\n$rowCount = $table.rows.length,\r\n\/\/ get the first cell's tag name (in the first row)\r\n$firstRow = $table.rows[0].firstElementChild.tagName,\r\n\/\/ boolean var to check if table has a head row\r\n$hasHead = ($firstRow === \"TH\"),\r\n\/\/ an array to hold each row\r\n$tr = [],\r\n\/\/ loop counters, to start count from rows[1] (2nd row) if the first row has a head tag\r\n$i,$ii,$j = ($hasHead)?1:0,\r\n\/\/ holds the first row if it has a (&lt;TH&gt;) &amp; nothing if (&lt;TD&gt;)\r\n$th = ($hasHead?$table.rows[(0)].outerHTML:\"\");\r\n\/\/ count the number of pages\r\nvar $pageCount = Math.ceil($rowCount \/ $n);\r\n\/\/ if we had one page only, then we have nothing to do ..\r\nif ($pageCount &gt; 1) {\r\n\t\/\/ assign each row outHTML (tag name &amp; innerHTML) to the array\r\n\tfor ($i = $j,$ii = 0; $i &lt; $rowCount; $i++, $ii++)\r\n\t\t$tr[$ii] = $table.rows[$i].outerHTML;\r\n\t\/\/ create a div block to hold the buttons\r\n\t$table.insertAdjacentHTML(\"afterend\",\"&lt;div id='buttons'&gt;&lt;\/div\");\r\n\t\/\/ the first sort, default page is the first one\r\n\tsort(1);\r\n}\r\n\r\n\/\/ ($p) is the selected page number. it will be generated when a user clicks a button\r\nfunction sort($p) {\r\n\t\/* create ($rows) a variable to hold the group of rows\r\n\t** to be displayed on the selected page,\r\n\t** ($s) the start point .. the first row in each page, Do The Math\r\n\t*\/\r\n\tvar $rows = $th,$s = (($n * $p)-$n);\r\n\tfor ($i = $s; $i &lt; ($s+$n) &amp;&amp; $i &lt; $tr.length; $i++)\r\n\t\t$rows += $tr[$i];\r\n\t\r\n\t\/\/ now the table has a processed group of rows ..\r\n\t$table.innerHTML = $rows;\r\n\t\/\/ create the pagination buttons\r\n\tdocument.getElementById(\"buttons\").innerHTML = pageButtons($pageCount,$p);\r\n\t\/\/ CSS Stuff\r\n\tdocument.getElementById(\"id\"+$p).setAttribute(\"class\",\"active\");\r\n}\r\n\r\n\r\n\/\/ ($pCount) : number of pages,($cur) : current page, the selected one ..\r\nfunction pageButtons($pCount,$cur) {\r\n\t\/* this variables will disable the \"Prev\" button on 1st page\r\n\t   and \"next\" button on the last one *\/\r\n\tvar\t$prevDis = ($cur == 1)?\"disabled\":\"\",\r\n\t\t$nextDis = ($cur == $pCount)?\"disabled\":\"\",\r\n\t\t\/* this ($buttons) will hold every single button needed\r\n\t\t** it will creates each button and sets the onclick attribute\r\n\t\t** to the \"sort\" function with a special ($p) number..\r\n\t\t*\/\r\n\t\t$buttons = \"&lt;input type='button' value='&lt;&lt; Prev' onclick='sort(\"+($cur - 1)+\")' \"+$prevDis+\"&gt;\";\r\n\tfor ($i=1; $i&lt;=$pCount;$i++)\r\n\t\t$buttons += \"&lt;input type='button' id='id\"+$i+\"'value='\"+$i+\"' onclick='sort(\"+$i+\")'&gt;\";\r\n\t$buttons += \"&lt;input type='button' value='Next &gt;&gt;' onclick='sort(\"+($cur + 1)+\")' \"+$nextDis+\"&gt;\";\r\n\treturn $buttons;\r\n}<\/pre>\n<p>That&#8217;s all! hopefully, you have successfully integrated this table pagination code snippet into your project. If you have any questions or are facing any issues, please feel free to comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This JavaScript code snippet helps you to create simple table pagination. It allows you to define table rows per page&#8230;<\/p>\n","protected":false},"author":1,"featured_media":6481,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[116],"tags":[84],"class_list":["post-6471","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vanilla-javascript","tag-pagination"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>49+ Simple Table Pagination JavaScript Demo Download Tutorial &#8212; CodeHim<\/title>\n<meta name=\"description\" content=\"Here is a lightweight JavaScript code snippet to create a simple table pagination. You can view demo and download source code.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/codehim.com\/vanilla-javascript\/simple-table-pagination-javascript\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"49+ Simple Table Pagination JavaScript Demo Download Tutorial &#8212; CodeHim\" \/>\n<meta property=\"og:description\" content=\"Here is a lightweight JavaScript code snippet to create a simple table pagination. You can view demo and download source code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codehim.com\/vanilla-javascript\/simple-table-pagination-javascript\/\" \/>\n<meta property=\"og:site_name\" content=\"CodeHim\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/codehimofficial\" \/>\n<meta property=\"article:published_time\" content=\"2024-01-11T16:46:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-01-22T09:47:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/05\/Simple-Table-Pagination-Jav.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"960\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Asif Mughal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@CodeHimOfficial\" \/>\n<meta name=\"twitter:site\" content=\"@CodeHimOfficial\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Asif Mughal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/simple-table-pagination-javascript\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/simple-table-pagination-javascript\/\"},\"author\":{\"name\":\"Asif Mughal\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\"},\"headline\":\"49+ Simple Table Pagination JavaScript Demo Download Tutorial\",\"datePublished\":\"2024-01-11T16:46:00+00:00\",\"dateModified\":\"2024-01-22T09:47:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/simple-table-pagination-javascript\/\"},\"wordCount\":128,\"commentCount\":7,\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/simple-table-pagination-javascript\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/05\/Simple-Table-Pagination-Jav.png\",\"keywords\":[\"Pagination\"],\"articleSection\":[\"Vanilla JavaScript\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/codehim.com\/vanilla-javascript\/simple-table-pagination-javascript\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/simple-table-pagination-javascript\/\",\"url\":\"https:\/\/codehim.com\/vanilla-javascript\/simple-table-pagination-javascript\/\",\"name\":\"49+ Simple Table Pagination JavaScript Demo Download Tutorial &#8212; CodeHim\",\"isPartOf\":{\"@id\":\"https:\/\/codehim.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/simple-table-pagination-javascript\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/simple-table-pagination-javascript\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/05\/Simple-Table-Pagination-Jav.png\",\"datePublished\":\"2024-01-11T16:46:00+00:00\",\"dateModified\":\"2024-01-22T09:47:33+00:00\",\"description\":\"Here is a lightweight JavaScript code snippet to create a simple table pagination. You can view demo and download source code.\",\"breadcrumb\":{\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/simple-table-pagination-javascript\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/codehim.com\/vanilla-javascript\/simple-table-pagination-javascript\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/simple-table-pagination-javascript\/#primaryimage\",\"url\":\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/05\/Simple-Table-Pagination-Jav.png\",\"contentUrl\":\"https:\/\/codehim.com\/wp-content\/uploads\/2022\/05\/Simple-Table-Pagination-Jav.png\",\"width\":1280,\"height\":960,\"caption\":\"Simple Table Pagination JavaScript\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/codehim.com\/vanilla-javascript\/simple-table-pagination-javascript\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/codehim.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Vanilla JavaScript\",\"item\":\"https:\/\/codehim.com\/category\/vanilla-javascript\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"49+ Simple Table Pagination JavaScript Demo Download Tutorial\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/codehim.com\/#website\",\"url\":\"https:\/\/codehim.com\/\",\"name\":\"CodeHim\",\"description\":\"Web Design Code Snippets\",\"publisher\":{\"@id\":\"https:\/\/codehim.com\/#organization\"},\"alternateName\":\"Web Design Codes\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/codehim.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/codehim.com\/#organization\",\"name\":\"CodeHim - Web Design Code & Scripts\",\"url\":\"https:\/\/codehim.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/logo\/image\/\",\"url\":\"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg\",\"contentUrl\":\"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg\",\"width\":280,\"height\":280,\"caption\":\"CodeHim - Web Design Code & Scripts\"},\"image\":{\"@id\":\"https:\/\/codehim.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/codehimofficial\",\"https:\/\/x.com\/CodeHimOfficial\",\"https:\/\/www.instagram.com\/codehim\/\",\"https:\/\/www.linkedin.com\/company\/codehim\",\"https:\/\/co.pinterest.com\/codehim\/\",\"https:\/\/www.youtube.com\/@codehim\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed\",\"name\":\"Asif Mughal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/codehim.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g\",\"caption\":\"Asif Mughal\"},\"description\":\"I code and create web elements for amazing people around the world. I like work with new people. New people new Experiences. I truly enjoy what I'm doing, which makes me more passionate about web development and coding. I am always ready to do challenging tasks whether it is about creating a custom CMS from scratch or customizing an existing system.\",\"sameAs\":[\"https:\/\/codehim.com\"],\"url\":\"https:\/\/codehim.com\/author\/asif-mughal\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"49+ Simple Table Pagination JavaScript Demo Download Tutorial &#8212; CodeHim","description":"Here is a lightweight JavaScript code snippet to create a simple table pagination. You can view demo and download source code.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/codehim.com\/vanilla-javascript\/simple-table-pagination-javascript\/","og_locale":"en_US","og_type":"article","og_title":"49+ Simple Table Pagination JavaScript Demo Download Tutorial &#8212; CodeHim","og_description":"Here is a lightweight JavaScript code snippet to create a simple table pagination. You can view demo and download source code.","og_url":"https:\/\/codehim.com\/vanilla-javascript\/simple-table-pagination-javascript\/","og_site_name":"CodeHim","article_publisher":"https:\/\/www.facebook.com\/codehimofficial","article_published_time":"2024-01-11T16:46:00+00:00","article_modified_time":"2024-01-22T09:47:33+00:00","og_image":[{"width":1280,"height":960,"url":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/05\/Simple-Table-Pagination-Jav.png","type":"image\/png"}],"author":"Asif Mughal","twitter_card":"summary_large_image","twitter_creator":"@CodeHimOfficial","twitter_site":"@CodeHimOfficial","twitter_misc":{"Written by":"Asif Mughal","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/codehim.com\/vanilla-javascript\/simple-table-pagination-javascript\/#article","isPartOf":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/simple-table-pagination-javascript\/"},"author":{"name":"Asif Mughal","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed"},"headline":"49+ Simple Table Pagination JavaScript Demo Download Tutorial","datePublished":"2024-01-11T16:46:00+00:00","dateModified":"2024-01-22T09:47:33+00:00","mainEntityOfPage":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/simple-table-pagination-javascript\/"},"wordCount":128,"commentCount":7,"publisher":{"@id":"https:\/\/codehim.com\/#organization"},"image":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/simple-table-pagination-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/05\/Simple-Table-Pagination-Jav.png","keywords":["Pagination"],"articleSection":["Vanilla JavaScript"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codehim.com\/vanilla-javascript\/simple-table-pagination-javascript\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codehim.com\/vanilla-javascript\/simple-table-pagination-javascript\/","url":"https:\/\/codehim.com\/vanilla-javascript\/simple-table-pagination-javascript\/","name":"49+ Simple Table Pagination JavaScript Demo Download Tutorial &#8212; CodeHim","isPartOf":{"@id":"https:\/\/codehim.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/simple-table-pagination-javascript\/#primaryimage"},"image":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/simple-table-pagination-javascript\/#primaryimage"},"thumbnailUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/05\/Simple-Table-Pagination-Jav.png","datePublished":"2024-01-11T16:46:00+00:00","dateModified":"2024-01-22T09:47:33+00:00","description":"Here is a lightweight JavaScript code snippet to create a simple table pagination. You can view demo and download source code.","breadcrumb":{"@id":"https:\/\/codehim.com\/vanilla-javascript\/simple-table-pagination-javascript\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codehim.com\/vanilla-javascript\/simple-table-pagination-javascript\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/vanilla-javascript\/simple-table-pagination-javascript\/#primaryimage","url":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/05\/Simple-Table-Pagination-Jav.png","contentUrl":"https:\/\/codehim.com\/wp-content\/uploads\/2022\/05\/Simple-Table-Pagination-Jav.png","width":1280,"height":960,"caption":"Simple Table Pagination JavaScript"},{"@type":"BreadcrumbList","@id":"https:\/\/codehim.com\/vanilla-javascript\/simple-table-pagination-javascript\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codehim.com\/"},{"@type":"ListItem","position":2,"name":"Vanilla JavaScript","item":"https:\/\/codehim.com\/category\/vanilla-javascript\/"},{"@type":"ListItem","position":3,"name":"49+ Simple Table Pagination JavaScript Demo Download Tutorial"}]},{"@type":"WebSite","@id":"https:\/\/codehim.com\/#website","url":"https:\/\/codehim.com\/","name":"CodeHim","description":"Web Design Code Snippets","publisher":{"@id":"https:\/\/codehim.com\/#organization"},"alternateName":"Web Design Codes","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/codehim.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/codehim.com\/#organization","name":"CodeHim - Web Design Code & Scripts","url":"https:\/\/codehim.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/#\/schema\/logo\/image\/","url":"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg","contentUrl":"http:\/\/codehim.com\/wp-content\/uploads\/2023\/06\/Codehim-short-logo.jpg","width":280,"height":280,"caption":"CodeHim - Web Design Code & Scripts"},"image":{"@id":"https:\/\/codehim.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/codehimofficial","https:\/\/x.com\/CodeHimOfficial","https:\/\/www.instagram.com\/codehim\/","https:\/\/www.linkedin.com\/company\/codehim","https:\/\/co.pinterest.com\/codehim\/","https:\/\/www.youtube.com\/@codehim"]},{"@type":"Person","@id":"https:\/\/codehim.com\/#\/schema\/person\/cc48f1dbe072a89a62a98171b7db43ed","name":"Asif Mughal","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codehim.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/b25bfcd7d4e341c2c6f785a88d8ad2a4?s=96&d=mm&r=g","caption":"Asif Mughal"},"description":"I code and create web elements for amazing people around the world. I like work with new people. New people new Experiences. I truly enjoy what I'm doing, which makes me more passionate about web development and coding. I am always ready to do challenging tasks whether it is about creating a custom CMS from scratch or customizing an existing system.","sameAs":["https:\/\/codehim.com"],"url":"https:\/\/codehim.com\/author\/asif-mughal\/"}]}},"views":25325,"_links":{"self":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/6471","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/comments?post=6471"}],"version-history":[{"count":0,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/posts\/6471\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media\/6481"}],"wp:attachment":[{"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/media?parent=6471"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/categories?post=6471"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codehim.com\/wp-json\/wp\/v2\/tags?post=6471"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}