Note that there are some explanatory texts on larger screens.

plurals
  1. POHide / Show Multiple Divs
    primarykey
    data
    text
    <p>I am trying to create a form that has various hide/reveals in it and one of the last parts I need to do to this form is SHOW the payment information fields when only Credit Card is selected.</p> <p>I have a test page setup here: <a href="http://www.faa.net.au/test/femmes-member-form.html" rel="nofollow">http://www.faa.net.au/test/femmes-member-form.html</a></p> <p>Process so far is:</p> <ol> <li>Enter your details</li> <li>Select Event Date</li> <li>Selecting Member + 1 or more Guests ask for payment details</li> <li>At the moment, I have displayed the 3 DIVs that I want to appear depending on the radio selection made but when I hide these, the code I have in place at present doesn't work.</li> </ol> <p>Can anyone help me here at all please?</p> <p>If you need the code, please let me know, with a number of different elements involved I didnt want to paste the whole thing on here, hopefully you can see the Source Code?</p> <p>Here is the Javascript I have at present but not sure if its this that is wrong or if its clashing with something else?</p> <pre><code> &lt;script type="text/javascript"&gt; $(function() { $('.cat_dropdown').change(function() { $('#payMethod').toggle($(this).val() &gt;= 2); }); }); &lt;/script&gt; &lt;script type="text/javascript"&gt; $(document).ready(function () { $(".payOptions").click(function () { $(".paymentinfo").hide(); switch ($(this).val()) { case "Credit Card Authorisation": $("#pay0").show("slow"); break; case "Direct Deposit": $("#pay1").show("slow"); break; case "Cash Payment (FAA Office)": $("#pay2").show("slow"); break; } }); }); &lt;/script&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload