Skip to main content
Copy edited.
Source Link
Peter Mortensen
  • 31.3k
  • 22
  • 109
  • 132

TopThe top answer didn't do it for me, this. This did though:

<script type="text/javascript">
    $(document).ready(function(){

        $("#li_13").click(function(){
            if($("#agree").attr('checked')){
                $("#saveForm").fadeIn();
        }
    }
    
         else
            {
                $("#saveForm").fadeOut();
            }
        });
    });
 
</script>

UPDATE 20121213: Basically when the element #li_13 is clicked, it checks if the element #agree# agree (which is the checkbox) is checked by using the .attr('checked').attr('checked') function, if. If it is then fadeIn the #saveForm element, and if not fadeOut the saveForm element.

Top answer didn't do it for me, this did though:

<script type="text/javascript">
$(document).ready(function(){

    $("#li_13").click(function(){
        if($("#agree").attr('checked')){
            $("#saveForm").fadeIn();
        }
        
         else
        {
            $("#saveForm").fadeOut();
        }
    });
    });
 
</script>

UPDATE 20121213: Basically when the element #li_13 is clicked, it checks if the element #agree (which is the checkbox) is checked by using the .attr('checked') function, if it is then fadeIn the #saveForm element, and if not fadeOut the saveForm element.

The top answer didn't do it for me. This did though:

<script type="text/javascript">
    $(document).ready(function(){

        $("#li_13").click(function(){
            if($("#agree").attr('checked')){
                $("#saveForm").fadeIn();
            }
            else
            {
                $("#saveForm").fadeOut();
            }
        });
    });
</script>

Basically when the element #li_13 is clicked, it checks if the element # agree (which is the checkbox) is checked by using the .attr('checked') function. If it is then fadeIn the #saveForm element, and if not fadeOut the saveForm element.

Post Made Community Wiki by Udit Bhardwaj
Date was wrong in my update.
Source Link
MDMoore313
  • 3.3k
  • 1
  • 25
  • 39

Top answer didn't do it for me, this did though:

<script type="text/javascript">
$(document).ready(function(){

    $("#li_13").click(function(){
        if($("#agree").attr('checked')){
            $("#saveForm").fadeIn();
        }
        
        else
        {
            $("#saveForm").fadeOut();
        }
    });
    });

</script>

UPDATE 2012131220121213: Basically when the element #li_13 is clicked, it checks if the element #agree (which is the checkbox) is checked by using the .attr('checked') function, if it is then fadeIn the #saveForm element, and if not fadeOut the saveForm element.

Top answer didn't do it for me, this did though:

<script type="text/javascript">
$(document).ready(function(){

    $("#li_13").click(function(){
        if($("#agree").attr('checked')){
            $("#saveForm").fadeIn();
        }
        
        else
        {
            $("#saveForm").fadeOut();
        }
    });
    });

</script>

UPDATE 20121312: Basically when the element #li_13 is clicked, it checks if the element #agree (which is the checkbox) is checked by using the .attr('checked') function, if it is then fadeIn the #saveForm element, and if not fadeOut the saveForm element.

Top answer didn't do it for me, this did though:

<script type="text/javascript">
$(document).ready(function(){

    $("#li_13").click(function(){
        if($("#agree").attr('checked')){
            $("#saveForm").fadeIn();
        }
        
        else
        {
            $("#saveForm").fadeOut();
        }
    });
    });

</script>

UPDATE 20121213: Basically when the element #li_13 is clicked, it checks if the element #agree (which is the checkbox) is checked by using the .attr('checked') function, if it is then fadeIn the #saveForm element, and if not fadeOut the saveForm element.

responding to comment for explanation.
Source Link
MDMoore313
  • 3.3k
  • 1
  • 25
  • 39

Top answer didn't do it for me, this did though:

<script type="text/javascript">
$(document).ready(function(){

    $("#li_13").click(function(){
        if($("#agree").attr('checked')){
            $("#saveForm").fadeIn();
        }
        
        else
        {
            $("#saveForm").fadeOut();
        }
    });
    });

</script>

UPDATE 20121312: Basically when the element #li_13 is clicked, it checks if the element #agree (which is the checkbox) is checked by using the .attr('checked') function, if it is then fadeIn the #saveForm element, and if not fadeOut the saveForm element.

Top answer didn't do it for me, this did though:

<script type="text/javascript">
$(document).ready(function(){

    $("#li_13").click(function(){
        if($("#agree").attr('checked')){
            $("#saveForm").fadeIn();
        }
        
        else
        {
            $("#saveForm").fadeOut();
        }
    });
    });

</script>

Top answer didn't do it for me, this did though:

<script type="text/javascript">
$(document).ready(function(){

    $("#li_13").click(function(){
        if($("#agree").attr('checked')){
            $("#saveForm").fadeIn();
        }
        
        else
        {
            $("#saveForm").fadeOut();
        }
    });
    });

</script>

UPDATE 20121312: Basically when the element #li_13 is clicked, it checks if the element #agree (which is the checkbox) is checked by using the .attr('checked') function, if it is then fadeIn the #saveForm element, and if not fadeOut the saveForm element.

Source Link
MDMoore313
  • 3.3k
  • 1
  • 25
  • 39
Loading