{"id":5499,"date":"2020-04-06T13:48:55","date_gmt":"2020-04-06T08:18:55","guid":{"rendered":"https:\/\/blog.pheonixsolutions.com\/?p=5499"},"modified":"2020-04-06T19:04:03","modified_gmt":"2020-04-06T13:34:03","slug":"jquery-traversing","status":"publish","type":"post","link":"https:\/\/pheonixsolutions.com\/blog\/jquery-traversing\/","title":{"rendered":"JQUERY &#8211; TRAVERSING"},"content":{"rendered":"\n<p>JQUERY &#8211; TRAVERSING<\/p>\n\n\n\n<p>06\/04\/2020<\/p>\n\n\n\n<p>JQUERY &#8211; Traversing is used to select HTML element based on the relationship. It supports lots of methods to find the element.<\/p>\n\n\n\n<p><strong>Jquery &#8211; siblings()<\/strong><\/p>\n\n\n\n<p>This method select all the siblings of the selected element. <\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n&lt;head&gt;\n&lt;style&gt;\n.siblings  { \n  display: block;\n   padding: 5px; \n  color: gray;\n  text-align: center;\n  margin: 15px;\n}\n&lt;\/style&gt;\n<a href=\"https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/3.4.1\/jquery.min.js\">https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/3.4.1\/jquery.min.js<\/a>\n&lt;script&gt;\n$(document).ready(function(){\n  $(\"p\").siblings().css({\"color\": \"blue\"});\n});\n&lt;\/script&gt;\n&lt;\/head&gt;\n&lt;body class=\"siblings\"&gt;\n\n&lt;div&gt;Parent \n  &lt;p&gt;child 1&lt;\/p&gt;\n  &lt;span&gt;child 2&lt;\/span&gt;\n  &lt;p&gt;child 3&lt;\/p&gt;\n  &lt;h3&gt;child 4&lt;\/h3&gt;\n  \n&lt;\/div&gt;\n\n&lt;\/body&gt;\n&lt;\/html&gt;\n<\/pre>\n\n\n\n<figure class=\"wp-block-gallery columns-1 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\"><ul class=\"blocks-gallery-grid\"><li class=\"blocks-gallery-item\"><figure><img loading=\"lazy\" decoding=\"async\" width=\"530\" height=\"231\" src=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2020\/04\/Screenshot-2020-04-06-at-12.51.11.png\" alt=\"\" data-id=\"5500\" data-full-url=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2020\/04\/Screenshot-2020-04-06-at-12.51.11.png\" data-link=\"https:\/\/blog.pheonixsolutions.com\/?attachment_id=5500\" class=\"wp-image-5500\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/04\/Screenshot-2020-04-06-at-12.51.11.png 530w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/04\/Screenshot-2020-04-06-at-12.51.11-300x131.png 300w\" sizes=\"auto, (max-width: 530px) 100vw, 530px\" \/><\/figure><\/li><\/ul><\/figure>\n\n\n\n<p><strong>Jquery &#8211; next()<\/strong><\/p>\n\n\n\n<p>This method selects the next sibling of the given element.<\/p>\n\n\n\n<p>In the following method, it will select the next element of the &lt;p&gt; tag.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n&lt;head&gt;\n&lt;style&gt;\n.siblings  { \n  display: block;\n   padding: 5px; \n  color: gray;\n  text-align: center;\n  margin: 15px;\n}\n&lt;\/style&gt;\n<a href=\"https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/3.4.1\/jquery.min.js\">https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/3.4.1\/jquery.min.js<\/a>\n&lt;script&gt;\n$(document).ready(function(){\n  $(\"p\").next().css({\"color\": \"blue\"});\n});\n&lt;\/script&gt;\n&lt;\/head&gt;\n&lt;body class=\"siblings\"&gt;\n\n&lt;div&gt;Parent \n  &lt;p&gt;child 1&lt;\/p&gt;\n  &lt;span&gt;child 2&lt;\/span&gt;\n  &lt;p&gt;child 3&lt;\/p&gt;\n  &lt;h3&gt;child 4&lt;\/h3&gt;\n  \n&lt;\/div&gt;\n\n&lt;\/body&gt;\n&lt;\/html&gt;\n<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"425\" height=\"179\" src=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2020\/04\/Screenshot-2020-04-06-at-13.02.41.png\" alt=\"\" class=\"wp-image-5502\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/04\/Screenshot-2020-04-06-at-13.02.41.png 425w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/04\/Screenshot-2020-04-06-at-13.02.41-300x126.png 300w\" sizes=\"auto, (max-width: 425px) 100vw, 425px\" \/><\/figure>\n\n\n\n<p><strong>Jquery &#8211; nextAll()<\/strong><\/p>\n\n\n\n<p>nextAll() method select all the next sibling of the given elemnt.<\/p>\n\n\n\n<p>The following method will select all the next sibling of the &lt;h1&gt;.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n&lt;head&gt;\n&lt;style&gt;\n.siblings  { \n  display: block;\n   padding: 5px; \n  color: gray;\n  text-align: center;\n  margin: 15px;\n}\n&lt;\/style&gt;\n<a href=\"https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/3.4.1\/jquery.min.js\">https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/3.4.1\/jquery.min.js<\/a>\n&lt;script&gt;\n$(document).ready(function(){\n  $(\"h1\").nextAll().css({\"color\": \"blue\"});\n});\n&lt;\/script&gt;\n&lt;\/head&gt;\n&lt;body class=\"siblings\"&gt;\n\n&lt;div&gt;Parent \n  \n  &lt;span&gt;child 1&lt;\/span&gt;\n  &lt;h1&gt;child 2&lt;\/h1&gt;\n  &lt;p&gt;child 3&lt;\/p&gt;\n  \n  &lt;h3&gt;child 4&lt;\/h3&gt;\n  \n&lt;\/div&gt;\n\n&lt;\/body&gt;\n&lt;\/html&gt;\n<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"333\" height=\"189\" src=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2020\/04\/Screenshot-2020-04-06-at-13.08.26.png\" alt=\"\" class=\"wp-image-5504\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/04\/Screenshot-2020-04-06-at-13.08.26.png 333w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/04\/Screenshot-2020-04-06-at-13.08.26-300x170.png 300w\" sizes=\"auto, (max-width: 333px) 100vw, 333px\" \/><\/figure>\n\n\n\n<p><strong>Jquery &#8211; nextUntil()<\/strong><\/p>\n\n\n\n<p>This method select all the elements between the given two-element.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n&lt;head&gt;\n&lt;style&gt;\n.siblings  { \n  display: block;\n   padding: 5px; \n  color: gray;\n  text-align: center;\n  margin: 15px;\n}\n&lt;\/style&gt;\n<a href=\"https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/3.4.1\/jquery.min.js\">https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/3.4.1\/jquery.min.js<\/a>\n&lt;script&gt;\n$(document).ready(function(){\n  $(\"h1\").nextUntil(\"h4\").css({\"color\": \"blue\"});\n});\n&lt;\/script&gt;\n&lt;\/head&gt;\n&lt;body class=\"siblings\"&gt;\n\n&lt;div&gt;Parent \n  &lt;h1&gt;siblings&lt;\/h1&gt;\n  &lt;p&gt;child 1&lt;\/p&gt;\n  &lt;h2&gt;child 2&lt;\/h2&gt;\n  &lt;p&gt;child 3&lt;\/p&gt;\n  \n  &lt;h3&gt;child 4&lt;\/h3&gt;\n  &lt;h4&gt;child 5&lt;\/h4&gt;\n  &lt;h5&gt;child 6&lt;\/h5&gt;\n  \n&lt;\/div&gt;\n\n&lt;\/body&gt;\n&lt;\/html&gt;\n<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"461\" height=\"366\" src=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2020\/04\/Screenshot-2020-04-06-at-13.25.17.png\" alt=\"\" class=\"wp-image-5506\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/04\/Screenshot-2020-04-06-at-13.25.17.png 461w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/04\/Screenshot-2020-04-06-at-13.25.17-300x238.png 300w\" sizes=\"auto, (max-width: 461px) 100vw, 461px\" \/><\/figure>\n\n\n\n<p><strong>Jquery &#8211; prev()<\/strong><\/p>\n\n\n\n<p>This method selects the previous element of the given element.<\/p>\n\n\n\n<p>The following method selects the previous siblings of the &lt;p&gt; tag.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n&lt;head&gt;\n&lt;style&gt;\n.siblings  { \n  display: block;\n   padding: 5px; \n  color: gray;\n  text-align: center;\n  margin: 15px;\n}\n&lt;\/style&gt;\n<a href=\"https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/3.4.1\/jquery.min.js\">https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/3.4.1\/jquery.min.js<\/a>\n&lt;script&gt;\n$(document).ready(function(){\n  $(\"p\").prev().css({\"color\": \"blue\"});\n});\n&lt;\/script&gt;\n&lt;\/head&gt;\n&lt;body class=\"siblings\"&gt;\n\n&lt;div&gt;Parent \n  &lt;h1&gt;siblings&lt;\/h1&gt;\n  &lt;p&gt;child 1&lt;\/p&gt;\n  &lt;h2&gt;child 2&lt;\/h2&gt;\n  &lt;p&gt;child 3&lt;\/p&gt;\n  \n  &lt;h3&gt;child 4&lt;\/h3&gt;\n  &lt;h4&gt;child 5&lt;\/h4&gt;\n  &lt;h5&gt;child 6&lt;\/h5&gt;\n  \n&lt;\/div&gt;\n\n&lt;\/body&gt;\n&lt;\/html&gt;\n<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"457\" height=\"378\" src=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2020\/04\/Screenshot-2020-04-06-at-13.33.12.png\" alt=\"\" class=\"wp-image-5507\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/04\/Screenshot-2020-04-06-at-13.33.12.png 457w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/04\/Screenshot-2020-04-06-at-13.33.12-300x248.png 300w\" sizes=\"auto, (max-width: 457px) 100vw, 457px\" \/><\/figure>\n\n\n\n<p><strong>Jquery &#8211; <\/strong>prevAll<strong>()<\/strong><\/p>\n\n\n\n<p>This method selects all the previous elements of the given element.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n&lt;head&gt;\n&lt;style&gt;\n.siblings  { \n  display: block;\n   padding: 5px; \n  color: gray;\n  text-align: center;\n  margin: 15px;\n}\n&lt;\/style&gt;\n<a href=\"https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/3.4.1\/jquery.min.js\">https:\/\/ajax.googleapis.com\/ajax\/libs\/jquery\/3.4.1\/jquery.min.js<\/a>\n&lt;script&gt;\n$(document).ready(function(){\n  $(\"h4\").prevAll().css({\"color\": \"blue\"});\n});\n&lt;\/script&gt;\n&lt;\/head&gt;\n&lt;body class=\"siblings\"&gt;\n\n&lt;div&gt;Parent \n  &lt;h1&gt;siblings&lt;\/h1&gt;\n  &lt;p&gt;child 1&lt;\/p&gt;\n  &lt;h2&gt;child 2&lt;\/h2&gt;\n  &lt;p&gt;child 3&lt;\/p&gt;\n  \n  &lt;h3&gt;child 4&lt;\/h3&gt;\n  &lt;h4&gt;child 5&lt;\/h4&gt;\n  &lt;h5&gt;child 6&lt;\/h5&gt;\n  \n&lt;\/div&gt;\n\n&lt;\/body&gt;\n&lt;\/html&gt;\n<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"442\" height=\"363\" src=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2020\/04\/Screenshot-2020-04-06-at-13.41.09.png\" alt=\"\" class=\"wp-image-5509\" srcset=\"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/04\/Screenshot-2020-04-06-at-13.41.09.png 442w, https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2020\/04\/Screenshot-2020-04-06-at-13.41.09-300x246.png 300w\" sizes=\"auto, (max-width: 442px) 100vw, 442px\" \/><\/figure>\n\n\n\n<p>Thanks for using&nbsp;<a href=\"https:\/\/pheonixsolutions.com\/\">pheonixsolutions<\/a>.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>JQUERY &#8211; TRAVERSING 06\/04\/2020 JQUERY &#8211; Traversing is used to select HTML element based on the relationship. It supports lots of methods to find the element. Jquery &#8211; siblings() This method select all the siblings of the selected element. Jquery &#8211; next() This method selects the next sibling of the&hellip; <a href=\"https:\/\/pheonixsolutions.com\/blog\/jquery-traversing\/\" class=\"more-link read-more\" rel=\"bookmark\">Continue Reading <span class=\"screen-reader-text\">JQUERY &#8211; TRAVERSING<\/span><i class=\"fa fa-arrow-right\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[351,287],"tags":[751,760,761,759],"class_list":{"0":"post-5499","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-javascript","7":"category-javascriptjquery","8":"tag-jquery","9":"tag-next","10":"tag-nextall","11":"tag-siblings","12":"h-entry","14":"h-as-article"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Pheonix Solutions - We Empower Your Business Growth<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/pheonixsolutions.com\/blog\/jquery-traversing\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Pheonix Solutions - We Empower Your Business Growth\" \/>\n<meta property=\"og:description\" content=\"JQUERY &#8211; TRAVERSING 06\/04\/2020 JQUERY &#8211; Traversing is used to select HTML element based on the relationship. It supports lots of methods to find the element. Jquery &#8211; siblings() This method select all the siblings of the selected element. Jquery &#8211; next() This method selects the next sibling of the&hellip; Continue Reading JQUERY &#8211; TRAVERSING\" \/>\n<meta property=\"og:url\" content=\"https:\/\/pheonixsolutions.com\/blog\/jquery-traversing\/\" \/>\n<meta property=\"og:site_name\" content=\"PHEONIXSOLUTIONS\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-04-06T08:18:55+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-04-06T13:34:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2020\/04\/Screenshot-2020-04-06-at-12.51.11.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@pheonixsolution\" \/>\n<meta name=\"twitter:site\" content=\"@pheonixsolution\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/jquery-traversing\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/jquery-traversing\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/0ffa33d73c869faec2d50e79c24e3503\"},\"headline\":\"JQUERY &#8211; TRAVERSING\",\"datePublished\":\"2020-04-06T08:18:55+00:00\",\"dateModified\":\"2020-04-06T13:34:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/jquery-traversing\\\/\"},\"wordCount\":156,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/jquery-traversing\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/blog.pheonixsolutions.com\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/Screenshot-2020-04-06-at-12.51.11.png\",\"keywords\":[\"jquery\",\"next()\",\"nextAll()\",\"siblings\"],\"articleSection\":[\"Javascript\",\"Javascript\\\/jquery\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/jquery-traversing\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/jquery-traversing\\\/\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/jquery-traversing\\\/\",\"name\":\"Pheonix Solutions - We Empower Your Business Growth\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/jquery-traversing\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/jquery-traversing\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/blog.pheonixsolutions.com\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/Screenshot-2020-04-06-at-12.51.11.png\",\"datePublished\":\"2020-04-06T08:18:55+00:00\",\"dateModified\":\"2020-04-06T13:34:03+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/jquery-traversing\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/jquery-traversing\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/jquery-traversing\\\/#primaryimage\",\"url\":\"https:\\\/\\\/blog.pheonixsolutions.com\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/Screenshot-2020-04-06-at-12.51.11.png\",\"contentUrl\":\"https:\\\/\\\/blog.pheonixsolutions.com\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/Screenshot-2020-04-06-at-12.51.11.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/jquery-traversing\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"JQUERY &#8211; TRAVERSING\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\",\"name\":\"Pheonix Solutions\",\"description\":\"We Empower Your Business Growth\",\"publisher\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#organization\",\"name\":\"PheonixSolutions\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/12\\\/logo.png\",\"width\":454,\"height\":300,\"caption\":\"PheonixSolutions\"},\"image\":{\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/PheonixSolutions-209942982759387\\\/\",\"https:\\\/\\\/x.com\\\/pheonixsolution\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/#\\\/schema\\\/person\\\/0ffa33d73c869faec2d50e79c24e3503\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"http:\\\/\\\/blog.pheonixsolutions.com\"],\"url\":\"https:\\\/\\\/pheonixsolutions.com\\\/blog\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Pheonix Solutions - We Empower Your Business Growth","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:\/\/pheonixsolutions.com\/blog\/jquery-traversing\/","og_locale":"en_US","og_type":"article","og_title":"Pheonix Solutions - We Empower Your Business Growth","og_description":"JQUERY &#8211; TRAVERSING 06\/04\/2020 JQUERY &#8211; Traversing is used to select HTML element based on the relationship. It supports lots of methods to find the element. Jquery &#8211; siblings() This method select all the siblings of the selected element. Jquery &#8211; next() This method selects the next sibling of the&hellip; Continue Reading JQUERY &#8211; TRAVERSING","og_url":"https:\/\/pheonixsolutions.com\/blog\/jquery-traversing\/","og_site_name":"PHEONIXSOLUTIONS","article_publisher":"https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/","article_published_time":"2020-04-06T08:18:55+00:00","article_modified_time":"2020-04-06T13:34:03+00:00","og_image":[{"url":"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2020\/04\/Screenshot-2020-04-06-at-12.51.11.png","type":"","width":"","height":""}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@pheonixsolution","twitter_site":"@pheonixsolution","twitter_misc":{"Written by":"admin","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pheonixsolutions.com\/blog\/jquery-traversing\/#article","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/blog\/jquery-traversing\/"},"author":{"name":"admin","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/person\/0ffa33d73c869faec2d50e79c24e3503"},"headline":"JQUERY &#8211; TRAVERSING","datePublished":"2020-04-06T08:18:55+00:00","dateModified":"2020-04-06T13:34:03+00:00","mainEntityOfPage":{"@id":"https:\/\/pheonixsolutions.com\/blog\/jquery-traversing\/"},"wordCount":156,"commentCount":0,"publisher":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#organization"},"image":{"@id":"https:\/\/pheonixsolutions.com\/blog\/jquery-traversing\/#primaryimage"},"thumbnailUrl":"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2020\/04\/Screenshot-2020-04-06-at-12.51.11.png","keywords":["jquery","next()","nextAll()","siblings"],"articleSection":["Javascript","Javascript\/jquery"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/pheonixsolutions.com\/blog\/jquery-traversing\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/pheonixsolutions.com\/blog\/jquery-traversing\/","url":"https:\/\/pheonixsolutions.com\/blog\/jquery-traversing\/","name":"Pheonix Solutions - We Empower Your Business Growth","isPartOf":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/pheonixsolutions.com\/blog\/jquery-traversing\/#primaryimage"},"image":{"@id":"https:\/\/pheonixsolutions.com\/blog\/jquery-traversing\/#primaryimage"},"thumbnailUrl":"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2020\/04\/Screenshot-2020-04-06-at-12.51.11.png","datePublished":"2020-04-06T08:18:55+00:00","dateModified":"2020-04-06T13:34:03+00:00","breadcrumb":{"@id":"https:\/\/pheonixsolutions.com\/blog\/jquery-traversing\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/pheonixsolutions.com\/blog\/jquery-traversing\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pheonixsolutions.com\/blog\/jquery-traversing\/#primaryimage","url":"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2020\/04\/Screenshot-2020-04-06-at-12.51.11.png","contentUrl":"https:\/\/blog.pheonixsolutions.com\/wp-content\/uploads\/2020\/04\/Screenshot-2020-04-06-at-12.51.11.png"},{"@type":"BreadcrumbList","@id":"https:\/\/pheonixsolutions.com\/blog\/jquery-traversing\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/pheonixsolutions.com\/blog\/"},{"@type":"ListItem","position":2,"name":"JQUERY &#8211; TRAVERSING"}]},{"@type":"WebSite","@id":"https:\/\/pheonixsolutions.com\/blog\/#website","url":"https:\/\/pheonixsolutions.com\/blog\/","name":"Pheonix Solutions","description":"We Empower Your Business Growth","publisher":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/pheonixsolutions.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/pheonixsolutions.com\/blog\/#organization","name":"PheonixSolutions","url":"https:\/\/pheonixsolutions.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/12\/logo.png","contentUrl":"https:\/\/pheonixsolutions.com\/blog\/wp-content\/uploads\/2016\/12\/logo.png","width":454,"height":300,"caption":"PheonixSolutions"},"image":{"@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/PheonixSolutions-209942982759387\/","https:\/\/x.com\/pheonixsolution"]},{"@type":"Person","@id":"https:\/\/pheonixsolutions.com\/blog\/#\/schema\/person\/0ffa33d73c869faec2d50e79c24e3503","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/09bacc0294abee1322a23ab4bc6a0330dd4cb4df707dc9d0b0efeba6c109608b?s=96&r=g","caption":"admin"},"sameAs":["http:\/\/blog.pheonixsolutions.com"],"url":"https:\/\/pheonixsolutions.com\/blog\/author\/admin\/"}]}},"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p7F4uM-1qH","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/5499","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=5499"}],"version-history":[{"count":0,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/posts\/5499\/revisions"}],"wp:attachment":[{"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=5499"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=5499"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pheonixsolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=5499"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}