{"id":659,"date":"2012-10-25T12:02:48","date_gmt":"2012-10-25T12:02:48","guid":{"rendered":"http:\/\/codeatelier.wordpress.com\/?p=356"},"modified":"2015-12-23T11:19:08","modified_gmt":"2015-12-23T11:19:08","slug":"how-to-style-pagination-jquery-javascript","status":"publish","type":"post","link":"https:\/\/codethataint.com\/blog\/how-to-style-pagination-jquery-javascript\/","title":{"rendered":"How to Style Pagination Jquery Javascript"},"content":{"rendered":"<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n                &lt;div class=&quot;pagination&quot;&gt;               \r\n                  &lt;span class=&quot;prev&quot;&gt;&lt;\/span&gt;\r\n                  &lt;span class=&quot;num&quot; id=&quot;1&quot;&gt;1&lt;\/span&gt; \r\n                  &lt;span class=&quot;num_active&quot; id=&quot;2&quot;&gt;2&lt;\/span&gt; \r\n                  &lt;span class=&quot;num&quot; id=&quot;3&quot;&gt;3&lt;\/span&gt; \r\n                  &lt;span class=&quot;num&quot; id=&quot;4&quot;&gt;4&lt;\/span&gt; \r\n                  &lt;span class=&quot;num&quot; id=&quot;5&quot;&gt;5&lt;\/span&gt; \r\n                  &lt;span class=&quot;num&quot; id=&quot;6&quot;&gt;6&lt;\/span&gt; \r\n                  &lt;span class=&quot;next&quot;&gt;&lt;\/span&gt;\r\n                 &lt;\/div&gt;\r\n<\/pre>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n  $('.pagination span').click(function(){\r\n\t$(&quot;.pagination span&quot;).removeClass(&quot;num_active&quot;).addClass(&quot;num&quot;); \r\n\t$(&quot;.pagination span:first&quot;).removeClass(&quot;num&quot;).addClass('prev');\r\n\t$(&quot;.pagination span:last&quot;).removeClass(&quot;num&quot;).addClass('next');\r\n        $(this).addClass(&quot;num_active&quot;); \r\n  });\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>&lt;div class=&quot;pagination&quot;&gt; &lt;span class=&quot;prev&quot;&gt;&lt;\/span&gt; &lt;span class=&quot;num&quot; id=&quot;1&quot;&gt;1&lt;\/span&gt; &lt;span class=&quot;num_active&quot; id=&quot;2&quot;&gt;2&lt;\/span&gt; &lt;span class=&quot;num&quot; id=&quot;3&quot;&gt;3&lt;\/span&gt; &lt;span class=&quot;num&quot; id=&quot;4&quot;&gt;4&lt;\/span&gt; &lt;span class=&quot;num&quot; id=&quot;5&quot;&gt;5&lt;\/span&gt; &lt;span class=&quot;num&quot; id=&quot;6&quot;&gt;6&lt;\/span&gt; &lt;span class=&quot;next&quot;&gt;&lt;\/span&gt; &lt;\/div&gt; $(&#8216;.pagination span&#8217;).click(function(){ $(&quot;.pagination span&quot;).removeClass(&quot;num_active&quot;).addClass(&quot;num&quot;); $(&quot;.pagination span:first&quot;).removeClass(&quot;num&quot;).addClass(&#8216;prev&#8217;); $(&quot;.pagination span:last&quot;).removeClass(&quot;num&quot;).addClass(&#8216;next&#8217;); $(this).addClass(&quot;num_active&quot;); });<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,13],"tags":[],"class_list":["post-659","post","type-post","status-publish","format-standard","hentry","category-javascript","category-jquery"],"_links":{"self":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/659","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/comments?post=659"}],"version-history":[{"count":2,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/659\/revisions"}],"predecessor-version":[{"id":1082,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/posts\/659\/revisions\/1082"}],"wp:attachment":[{"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/media?parent=659"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/categories?post=659"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codethataint.com\/blog\/wp-json\/wp\/v2\/tags?post=659"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}