• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Difference with onClick in browsers

Difference with onClick in browsers 7 years 2 months ago #37940

  • fonny
  • fonny's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Form with a checkbox group 'region' with items:
1|one[p1]
2|two[p1]
3|tree[p1]
4|four[p1]
5|five[p1]
6|six[p1]
7|seven[p1]
8|eight[p1]
9|nine[p1]
10|ten[p1]
and attribute: onclick="total();"

A calculation where totalRegion = {region:value}

And javascipt:
<script type="text/javascript">
function calculateTotal() {
var regioTot = document.getElementById("totaalRegio").value;
alert(regioTot);
}

</script>


When I select checkboxes, in
Safari & IE the value returned when clicking the first checkbox is 1,
2 when checking the 2nd checkbox, ...
But when doing the same with Chrome or FF, the 1st value is 0, the 2nd is 1.

Any idea what is wrong here and how to solve?
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!