ContactForm7 – Hide & Show field using Javascript

Views: 40

<script language="javascript" type="text/javascript">
// Hide the Text field by default

jQuery( document ).ready( function( $ ) {
	$( '#drug_details' ).css( 'display', 'none' );
	$( 'input[name="prescription-transferred"]' ).on( 'click', function() {
		var checked = $( 'input[name="prescription-transferred"]:checked' );
		if ( 'No, please only transfer the prescriptions listed below:' == checked.val() ) {
			$( '#drug_details' ).show();
		} else {
			$( '#drug_details' ).hide();
		}
	} );
} );
</script>

    Patient Information











    Transferring Pharmacy Location


    Prescription(s) to be Transferred

    Please provide us with drug name or prescription number for each of the prescriptions you would like to transfer to Chappelle Pharmasave.

    Yes, please transfer all of my prescriptions to Chappelle PharmasaveNo, please only transfer the prescriptions listed below:




    Important Note

    Chapelle Pharma is committed to protecting the privacy of our customers' information. Any and all information provided on this form will be kept strictly confidential in accordance with our privacy policy.
    By submitting this form you are giving consent for a Chapelle Pharma representative to contact the transferring pharmacy indicated to complete your prescription transfer request.

    Author:

    Leave a Reply