PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Hide Fields with jQuery

  1. I have two forms on a single page, im using them in conjunction with woocommerce. I was wondering if it was possible to hide a field, much like conditional logic does, with jQuery? I've added Style:display:hidden with jQuery but when the form is submitted the field still shows up. I could use conditional logic, but for this specific project I need to use jQuery, this is on my local machine so I can't provide a live example.

    Posted 11 years ago on Monday April 8, 2013 | Permalink
  2. Richard Vav
    Administrator

    Have you tried the .hide method where 2 is your form number and 28 is your field number

    <script>
    $(document).ready(function(){
         $('#field_2_28').hide();
    });
    </script>
    Posted 11 years ago on Tuesday April 9, 2013 | Permalink
  3. Excellent, thank you very much for your help! :)

    Posted 11 years ago on Wednesday April 10, 2013 | Permalink
  4. Richard Vav
    Administrator

    You're welcome

    Posted 11 years ago on Wednesday April 10, 2013 | Permalink

This topic has been resolved and has been closed to new replies.