0
{"ScriptPreparationCode":"var $testTable = $(\u0022#testTable\u0022);\r\n\r\nvar count = 0;\r\n\r\nfunction updateWhole() {\r\n $testTable.html(\u0022\u003Ctbody\u003E\u003Ctr id=\u0027countRow\u0027\u003E\u003Ctd class=\u0027count\u0027\u003E\u0022 \u002B count \u002B \u0022h\u003C/td\u003E\u003C/tr\u003E\u003C/tbody\u003E\u0022);\r\n}\r\n\r\nfunction updateCell() {\r\n var $elem = $(\u0022#countRow .count\u0022);\r\n var cnt = parseInt($elem.text() || 0);\r\n $elem.text(\u002B\u002Bcnt);\r\n}","TestCases":[{"Name":"Take count from element and update","Code":"updateCell();","IsDeferred":false},{"Name":"Update whole table","Code":"count\u002B\u002B;\r\nupdateWhole();","IsDeferred":false}]}