ssossossosso

Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

This topic contains 2 replies, has 2 voices, and was last updated by Ayushi Sangal Ayushi Sangal 3 years, 1 month ago.

  • Creator
    Topic
  • #5937
    Ayushi Sangal
    Ayushi Sangal
    Participant

    Hello,

    I have problem with jquery can anyone tell me how to resolve it my code is:-

    <script type=”text/javascript” >
    require([‘jquery’, ‘jquery-ui’,’bootstrap’],
    function ($) {
    $(function () {

    var gen = $(“#webmuch_groupbundle_memberdetails_gender”).val();

    if(gen == “Male”)
    {

    $(“.male”).show();
    $(“.female”).hide();

    }
    else{
    $(“.male”).hide();

    $(“.female”).show();

    }

    $(‘#webmuch_groupbundle_liabilitydetails_otherLoan’).change(function(){
    var other = $(“#webmuch_groupbundle_liabilitydetails_otherLoan”).val();

    if(other == “Yes”)
    {
    $(“.loan”).show();

    } else {
    $(“.loan”).hide();

    }
    });

    $(‘#webmuch_groupbundle_liabilitydetails_anythingMortgaged’).change(function(){
    var other = $(“#webmuch_groupbundle_liabilitydetails_anythingMortgaged”).val();

    if(other == “Yes”)
    {
    $(“.way”).show();

    } else
    {
    $(“.way”).hide();

    }
    });

    $(‘#webmuch_groupbundle_liabilitydetails_anySickMember’).change(function(){
    var other = $(“#webmuch_groupbundle_liabilitydetails_anySickMember”).val();

    if(other == “Yes”)
    {

    $(“.sick”).show();

    } else {
    $(“.sick”).hide();

    }
    });
    $(‘#webmuch_groupbundle_liabilitydetails_anyRunningLottery’).change(function(){
    var other = $(“#webmuch_groupbundle_liabilitydetails_anyRunningLottery”).val();

    if(other == “Yes”)
    {

    $(“.lottery”).show();

    } else {
    $(“.lottery”).hide();

    }
    });

    $(‘#webmuch_groupbundle_liabilitydetails_anyRunningPolicy’).change(function(){
    var other = $(“#webmuch_groupbundle_liabilitydetails_anyRunningPolicy”).val();

    if(other == “Yes”)
    {
    $(“.policy”).show();

    } else {
    $(“.policy”).hide();

    }
    });

    });

    });

    </script>

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #5941

    Alexandr Smaga
    Participant

    Hello. Your code looks correct, what’s the problem you wanna solve ?

    #5942
    Ayushi Sangal
    Ayushi Sangal
    Participant

    hello

    it is like when my jquery works properly my Save And Close button got disable(vice-versa). I dont know Why I am getting such problem.

Viewing 2 replies - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.