Unchecking checkbox using JQuery

Home Forums Quform WordPress Unchecking checkbox using JQuery

This topic is: resolved
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #18739
    EricBeins
    Participant

    Hi I am trying to uncheck a checkbox with the following code which is located in a HTML element on the form.

    <script>
    jQuery(document).ready(function($){
    $(‘.iphorm_2_1_1’).click(function(){
    $(‘.iphorm_2_4_1’).prop( “checked”, false );
    });
    })
    </script>

    iphorm_2_1 is a checkbox element with multiple options, when clicking the first checkbox option, it should reset the iphorm_2_4_1 first option of this checkbox.
    I am using WordPress 2.4.2 and Quform 1.7.7.
    For some reason this scrip doesn’t work and I can’t figure out why.
    I know the script executes, I had an alert line in there that works, but the checkbox doesn’t uncheck.

    Can you please help?

    #18744
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #18746
    EricBeins
    Participant

    Yes that is it, Thanks Ally your a Champ.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy