20 lines
604 B
HTML
20 lines
604 B
HTML
|
|
|
|
<input type="hidden" name="winix_form_id" value="[antispam_create_new_form_id_for_this_session]">
|
|
<input type="hidden" name="winix_form_counter" value="" class="winix_form_counter">
|
|
|
|
<script>
|
|
[# call antispam_create_new_form_id_for_this_session before antispam_loop]
|
|
function winix_calc_me()\{var counter = 0;[for antispam_loop]counter [antispam_loop_operator] [antispam_counter];[end]return counter;\}
|
|
|
|
var el = document.getElementsByClassName("winix_form_counter");
|
|
var val = winix_calc_me();
|
|
|
|
for(var i=0 ; i<el.length ; ++i)
|
|
\{
|
|
console.log(el\[i\]);
|
|
el\[i\].value = val;
|
|
\}
|
|
|
|
</script>
|