• 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: Copy the same ElementById to different fields

Copy the same ElementById to different fields 6 years 2 months ago #38842

  • patrick403
  • patrick403's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 42
  • Thank you received: 5
I am trying to copy the same getElementById to different fields using:
function copy()
{
  var a1 = document.getElementById('field1');
  var a2 = document.getElementById('field2');
  a2.value = a1.value;
}
 
function copy2()
{
  var a1 = document.getElementById('field1');
  var a2 = document.getElementById('field3');
  a2.value = a1.value;
}
This is not working. Is there a solution?
The administrator has disabled public write access.

Copy the same ElementById to different fields 6 years 2 months ago #38846

  • patrick403
  • patrick403's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 42
  • Thank you received: 5
Anyone?
Last Edit: 6 years 2 months ago by patrick403. Reason: wrong answer
The administrator has disabled public write access.

Copy the same ElementById to different fields 6 years 2 months ago #38847

  • patrick403
  • patrick403's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 42
  • Thank you received: 5
Solved
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!