﻿
{"id":3033,"date":"2014-09-09T22:19:21","date_gmt":"2014-09-09T22:19:21","guid":{"rendered":"http:\/\/www.gencayyildiz.com\/blog\/?p=3033"},"modified":"2014-09-09T22:19:21","modified_gmt":"2014-09-09T22:19:21","slug":"jquery-bir-nesnenin-icinde-bulunan-nesnenin-style-yapisina-mudahale-etmek","status":"publish","type":"post","link":"https:\/\/www.gencayyildiz.com\/blog\/jquery-bir-nesnenin-icinde-bulunan-nesnenin-style-yapisina-mudahale-etmek\/","title":{"rendered":"jQuery &#8211; Bir Nesnenin \u0130\u00e7inde Bulunan Nesnenin Style Yap\u0131s\u0131na M\u00fcdahale Etmek"},"content":{"rendered":"<div id=\"fb-root\"><\/div>\n<p>jQuery ile html nesnelerinin style yap\u0131lar\u0131na rahatl\u0131kla m\u00fcdahale edebiliyor ve hatta CSS \u00f6zelliklerindeki de\u011ferleri okuyabiliyorduk.Peki bir html nesnesi i\u00e7inde bulunan farkl\u0131 ya da benzer ba\u015fka bir nesnenin style yap\u0131s\u0131na nas\u0131l m\u00fcdahale edilebilir diye merak ediyorsan\u0131z bu yaz\u0131m\u0131zda sorunuza cevap bulabilirsiniz.<br \/>\n<!--more--><\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;input id=&quot;Tikla&quot; type=&quot;submit&quot; value=&quot;T\u0131kla&quot; \/&gt;\r\n&lt;div id=&quot;AnaNesne&quot;&gt;\r\n\r\n&lt;input id=&quot;AltNesne1&quot; type=&quot;month&quot; value=&quot;Ay&quot; \/&gt;\r\n&lt;br&gt;\r\n&lt;a id=&quot;AltNesne2&quot; href=&quot;#&quot;&gt;Link&lt;\/a&gt;\r\n\r\n&lt;\/div&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\n<p>Yukar\u0131daki kod blo\u011funu incelerseniz e\u011fer bir adet &#8220;AnaNesne&#8221; id de\u011ferine sahip bir &#8220;div&#8221; nesnesi mevcuttur.Bu &#8220;div&#8221; nesnesi i\u00e7erisinde birer adet &#8220;AltNesne1&#8221; id de\u011ferine sahip &#8220;input&#8221; nesnesi ve &#8220;AltNesne2&#8221; id de\u011ferine sahip &#8220;a&#8221; nesnesi mevcuttur.<\/p>\n<p>\u015eimdi &#8220;Tikla&#8221; id de\u011ferine sahip butonumuza t\u0131kland\u0131\u011f\u0131 anda &#8220;AnaNesne&#8221; id de\u011ferine sahip &#8220;div&#8221; nesnemizin i\u00e7indeki bulunan iki nesnemizinde jQuery ile style yap\u0131lar\u0131na m\u00fcdahale edelim.<\/p>\n<pre class=\"brush: jscript; title: ; notranslate\" title=\"\">\r\n&lt;html&gt;\r\n&lt;head&gt;\r\n&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text\/html; charset=utf-8&quot; \/&gt;\r\n&lt;script type=&quot;text\/javascript&quot; src=&quot;js\/jquery-2.0.2.min.js&quot;&gt;&lt;\/script&gt;\r\n&lt;script type=&quot;text\/javascript&quot;&gt;\r\nfunction Tikla()\r\n{\r\n\t$(&quot;#AnaNesne input&quot;).css(&quot;width&quot;,250);\r\n\t$(&quot;#AnaNesne a&quot;).css(&quot;font-size&quot;,50);\r\n\t}\r\n&lt;\/script&gt;\r\n&lt;\/head&gt;\r\n&lt;body&gt;\r\n&lt;input onClick=&quot;Tikla();&quot; id=&quot;Tikla&quot; type=&quot;submit&quot; value=&quot;T\u0131kla&quot; \/&gt;\r\n&lt;div id=&quot;AnaNesne&quot;&gt;\r\n\r\n&lt;input id=&quot;AltNesne1&quot; type=&quot;month&quot; value=&quot;Ay&quot; \/&gt;\r\n&lt;br&gt;\r\n&lt;a id=&quot;AltNesne2&quot; href=&quot;#&quot;&gt;Link&lt;\/a&gt;\r\n\r\n&lt;\/div&gt;\r\n&lt;\/body&gt;\r\n&lt;\/html&gt;\r\n<\/pre>\n<p>Yukar\u0131daki kodun mant\u0131\u011f\u0131 olduk\u00e7a basit oldu\u011fundan dolay\u0131 a\u00e7\u0131klamaya l\u00fczum g\u00f6rm\u00fcyorum.\u00d6rne\u011fi incelemeniz ve bir kereye mahsus tatbik etmeniz olay\u0131 idrak etmeniz i\u00e7in yeterli olacakt\u0131r.<\/p>\n<p>\u0130yi \u00e7al\u0131\u015fmalar dilerim&#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>jQuery ile html nesnelerinin style yap\u0131lar\u0131na rahatl\u0131kla m\u00fcdahale edebiliyor ve hatta CSS \u00f6zelliklerindeki de\u011ferleri okuyabiliyorduk.Peki bir html nesnesi i\u00e7inde bulunan farkl\u0131 ya da benzer ba\u015fka bir nesnenin style yap\u0131s\u0131na nas\u0131l m\u00fcdahale edilebilir diye merak&#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":3014,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18,19],"tags":[748],"class_list":["post-3033","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript","category-jquery","tag-jquery"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts\/3033","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=3033"}],"version-history":[{"count":0,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/posts\/3033\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/media\/3014"}],"wp:attachment":[{"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/media?parent=3033"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/categories?post=3033"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gencayyildiz.com\/blog\/wp-json\/wp\/v2\/tags?post=3033"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}