<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Серый форум &mdash; JS: Chrome_checked]]></title>
	<link rel="self" href="https://forum.script-coding.com/extern.php?action=feed&amp;tid=14511&amp;type=atom" />
	<updated>2019-01-26T10:51:47Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.script-coding.com/viewtopic.php?id=14511</id>
		<entry>
			<title type="html"><![CDATA[JS: Chrome_checked]]></title>
			<link rel="alternate" href="https://forum.script-coding.com/viewtopic.php?pid=131620#p131620" />
			<content type="html"><![CDATA[<p>Добрый день! Использую код в хроме, но почему то при кликах по другим элементам ли бо обновлении страницы checkBox.checked возвращается в исходное состояние. Заранее спасибо!<br /></p><div class="codebox"><pre><code>var i = 28;
var checkBox2 = document.getElementsByTagName(&quot;input&quot;)[11];
var checkBox3 = document.getElementsByTagName(&quot;input&quot;)[12];
var checkBox4 = document.getElementsByTagName(&quot;input&quot;)[13];

function clear () {
    if (i &lt;= 29) {
        document.getElementsByTagName(&quot;li&quot;)[i].click();
        i++;
    
        setTimeout(arguments.callee, 600);

if (checkBox2.checked = true ) {checkBox2.checked = false};
if (checkBox3.checked = true ) {checkBox3.checked = false}; 
if (checkBox4.checked = true ) {checkBox4.checked = false}; 

} else {
        alert(&#039;Готово!&#039;);
    } 
}clear();</code></pre></div>]]></content>
			<author>
				<name><![CDATA[inseption86]]></name>
				<uri>https://forum.script-coding.com/profile.php?id=38818</uri>
			</author>
			<updated>2019-01-26T10:51:47Z</updated>
			<id>https://forum.script-coding.com/viewtopic.php?pid=131620#p131620</id>
		</entry>
</feed>
