{"ScriptPreparationCode":"var table = $(\u0022#table\u0022)\r\nvar hide = [\u0022table \u0022]\r\nvar show = [\u0022table \u0022]\r\nvar update = function() {\r\n var s = show.join(\u0022, \u0022);\r\n var h = hide.join(\u0022, \u0022);\r\n $(s).show()\r\n $(h).hide()\r\n}","TestCases":[{"Name":"For each","Code":"table.children().each(function (i, element) {\r\n if (i % 2 === 0)\r\n element.show()\r\n else\r\n element.hide()\r\n});","IsDeferred":false},{"Name":"Selector","Code":"table.children().each(function (i, element) {\r\n if (i % 2 === 0)\r\n show.push(\u0022tr:nth-child(\u0022\u002Bi\u002B\u0022)\u0022)\r\n else\r\n hide.push(\u0022tr:nth-child(\u0022\u002Bi\u002B\u0022)\u0022)\r\n if(i === n_rows-1)\r\n update();\r\n});","IsDeferred":false}]}