Default code
<p>
<label class="has-checkbox terms">
<input type="hidden" value="0" name="order[terms]"></input>
<div class="icheckbox_minimal" style="position: relative;">
<input id="order_terms" class="checkbox" type="checkbox" value="1" name="order[terms]" style="position: absolute; top: -20%; left: -20%; display: block; w…roll 0% 0% rgb(255, 255, 255); border: 0px none; opacity: 0;"></input>
<ins class="iCheck-helper" style="position: absolute; top: -20%; left: -20%; display: block; w…roll 0% 0% rgb(255, 255, 255); border: 0px none; opacity: 0;"></ins>
</div>
I have read and agree to the
<a href=""></a>
, and accept the return policy
</label>
</p>
Checked code
<div class="icheckbox_minimal checked" style="position: relative;">
<input id="order_terms" class="checkbox" type="checkbox" value="1" name="order[terms]" style="position: absolute; top: -20%; left: -20%; display: block; w…roll 0% 0% rgb(255, 255, 255); border: 0px none; opacity: 0;"></input>
<ins class="iCheck-helper" style="position: absolute; top: -20%; left: -20%; display: block; w…roll 0% 0% rgb(255, 255, 255); border: 0px none; opacity: 0;"></ins>
</div>
Test code
test = webBrowser1.Document.GetElementById("order_terms");
test.invokemember("click");
The above code did not click/check the checkbox!
Here is code that checks for the check/click of the checkbox...
function(e) {
var t = e[c],
n = e.keyCode;
if (t == h) return !1;
if (t == "keydown" && n == 32) {
if (a[c] != i || !a[s]) a[s] ? S(o, s) : E(o, s);
return !1
}
t == "keyup" && a[c] == i ? !a[s] && E(o, s) : /us|ur/.test(t) && B[t == "blur" ? v : d](A)
}
Thanks.
I am pretty sure I need to work around the iCheck-helper..
Aucun commentaire:
Enregistrer un commentaire