• 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: Floor() value in text field

Floor() value in text field 4 years 4 months ago #40839

  • StormIT
  • StormIT's Avatar
  • OFFLINE
  • Junior Boarder
  • Posts: 32
I have a textbox, which value is created using Calculations.

In the textbox Additional Attributes I have
readonly="readonly" onchange="floor()"

Then I have the following in Javascript:
<script type="text/javascript">
function floor(){
		document.getElementById('roundedacross').value = Math.floor();
}
</script>

I need any numbers which are shown in the roundedacross field to be rounded down. But it's not working. Any ideas where I'm going wrong please?
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!