﻿
{"id":4513,"date":"2016-06-20T22:16:37","date_gmt":"2016-06-20T22:16:37","guid":{"rendered":"http:\/\/www.gencayyildiz.com\/blog\/?p=4513"},"modified":"2016-06-20T22:17:09","modified_gmt":"2016-06-20T22:17:09","slug":"jquery-first-ve-last-parametrelerinin-kullanimi","status":"publish","type":"post","link":"https:\/\/www.gencayyildiz.com\/blog\/jquery-first-ve-last-parametrelerinin-kullanimi\/","title":{"rendered":"jQuery &#8211; first ve last Parametrelerinin Kullan\u0131m\u0131"},"content":{"rendered":"<div id=\"fb-root\"><\/div>\n<p>Elimizdeki html eleman k\u00fcmesinde ilk(first) ve son(last) elemanlara eri\u015fmemizi sa\u011flayan parametrelerdir.<\/p>\n<p>A\u015fa\u011f\u0131daki yap\u0131y\u0131 ele al\u0131rsak e\u011fer,<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n&lt;ul id=&quot;Liste&quot;&gt;\r\n    &lt;li&gt;Bin atl\u0131 ak\u0131nlarda \u00e7ocuklar gibi \u015fendik&lt;\/li&gt;\r\n    &lt;li&gt;Bin atl\u0131 o g\u00fcn dev gibi bir orduyu yendik&lt;\/li&gt;\r\n    &lt;li&gt;Hayk\u0131rd\u0131, ak tolgal\u0131 beylerbeyi &quot;\u0130lerle!&quot;&lt;\/li&gt;\r\n    &lt;li&gt;Bir yaz g\u00fcn\u00fc ge\u00e7tik Tuna'dan kafilelerle&lt;\/li&gt;\r\n&lt;\/ul&gt;\r\n<\/pre>\n<p>\u015f\u00f6yle bir \u00e7al\u0131\u015fma ger\u00e7ekle\u015ftirebiliriz.<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n    &lt;style type=&quot;text\/css&quot;&gt;\r\n        .secici {\r\n            color: #FFFFFF;\r\n            background-color: #0000FF;\r\n        }\r\n    &lt;\/style&gt;\r\n--------------\r\n    &lt;input type=&quot;button&quot; onClick=&quot;Sec();&quot; value=&quot;Sec&quot; \/&gt;\r\n\r\n    &lt;script type=&quot;text\/javascript&quot;&gt;\r\n        function Sec() {\r\n            $(&quot;#Liste li:first&quot;).addClass(&quot;secici&quot;);\r\n            $(&quot;#Liste li:last&quot;).addClass(&quot;secici&quot;);\r\n        }\r\n    &lt;\/script&gt;\r\n<\/pre>\n<p><a href=\"http:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2016\/06\/jQuery-first-ve-last-Parametrelerinin-Kullan\u0131m\u0131.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2016\/06\/jQuery-first-ve-last-Parametrelerinin-Kullan\u0131m\u0131-300x120.jpg\" alt=\"jQuery - first ve last Parametrelerinin Kullan\u0131m\u0131\" width=\"300\" height=\"120\" class=\"aligncenter size-medium wp-image-4514\" srcset=\"https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2016\/06\/jQuery-first-ve-last-Parametrelerinin-Kullan\u0131m\u0131-300x120.jpg 300w, https:\/\/www.gencayyildiz.com\/blog\/wp-content\/uploads\/2016\/06\/jQuery-first-ve-last-Parametrelerinin-Kullan\u0131m\u0131.jpg 312w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><br \/>\n\u0130yi \u00e7al\u0131\u015fmalar&#8230;<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>Elimizdeki html eleman k\u00fcmesinde ilk(first) ve son(last) elemanlara eri\u015fmemizi sa\u011flayan parametrelerdir. A\u015fa\u011f\u0131daki yap\u0131y\u0131 ele al\u0131rsak e\u011fer, &lt;ul id=&quot;Liste&quot;&gt; &lt;li&gt;Bin atl\u0131 ak\u0131nlarda \u00e7ocuklar gibi \u015fendik&lt;\/li&gt; &lt;li&gt;Bin atl\u0131 o g\u00fcn dev gibi bir orduyu yendik&lt;\/li&gt; &lt;li&gt;Hayk\u0131rd\u0131,&#46;&#46;&#46;<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":1,"featured_media":3401,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[1246,748,1247],"class_list":["post-4513","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-jquery","tag-first","tag-jquery","tag-last"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts\/4513","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/comments?post=4513"}],"version-history":[{"count":0,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts\/4513\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/media\/3401"}],"wp:attachment":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/media?parent=4513"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/categories?post=4513"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/tags?post=4513"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}