• 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: Is it possible to make conditional changes in form

This message has been removed by user's request. 12 years 3 days ago #23019

  • c1f50a6451b63615339dcde337793b64@RSJOOMLA_DELETED
  • c1f50a6451b63615339dcde337793b64@RSJOOMLA_DELETED's Avatar
This message has been removed by user's request.
The administrator has disabled public write access.

Is it possible to make conditional changes in form 11 years 11 months ago #23520

Did you find a solution for this? I'm trying to do something similar.
The administrator has disabled public write access.

Is it possible to make conditional changes in form 11 years 10 months ago #23812

  • sonokhop
  • sonokhop's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
Proplem maybe find here:
<!DOCTYPE html>
 <head>
 <TITLE>test</TITLE>
<!-- 1st, I don't use
 <script src="javascript/jquery-2.0.0b1.js"></script>
 2nd, not provided
 <link rel="stylesheet" href="css/domain-name-price-guide-table.css" />
-->
 </head>
 <body>
 <div class="datagrid">
 <form id="buy">
 <table>
 <thead>
 </thead>
 <tbody>
 <tr>
 <td>
 <select id="years" onchange="setPrice()">
 <option value="4.49">1 Year</option>
 <option value="6.49">2 Years</option>
 <option value="9.47">3 Years</option>
 <option value="12.47">4 Years</option>
 <option value="15.45">5 Years</option>
 <option value="18.44">6 Years</option>
 <option value="21.43">7 Years</option>
 <option value="24.42">8 Years</option>
 <option value="27.41">9 Years</option>
 <option value="30.40">10 Years</option>
 </select>
 </td>
 <td>
 <select id="domain" onchange="setPrice()">
 <option value="1">1 domain name</option>
 <option value="2">2 domain names</option>
 <option value="3">3 domain names</option>
 <option value="4">4 domain names</option>
 <option value="5">5 domain names</option>
 <option value="6">6 domain names</option>
 <option value="7">7 domain names</option>
 <option value="8">8 domain names</option>
 <option value="9">9 domain names</option>
 <option value="10">10 domain names</option>
 <option value="11">11 domain names</option>
 </select>
 </td>
 <td>
 <select id="transfer" onchange="setPrice()">
 <option value="0">No</option>
 <option value="4.50">Yes</option>
 </select>
 </td>
 <td>
 &pound; <input type="text" id="total" readonly />
 </td>
 </tr>
 </tbody>
 </table>
 </form>
 <script>
 function $_(IDS) { return document.getElementById(IDS); }
 
function setPrice () {
 var years = parseFloat($_('years').value);
 var names = parseInt($_('domain').value);
 var transfer = parseFloat($_('transfer').value);
 var result = (years * names + names * transfer).toFixed(2);
 $_('total').value = result
 }
 setPrice();
 </script>
 </div>
</body>
 </html>
Last Edit: 11 years 10 months ago by octavian.
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!