OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

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

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #34600
    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
  • #34601

    Alexandr Smaga
    Participant

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

    #34602
    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)

The forum ‘OroPlatform – HTML, JavaScript, CSS, Design Questions’ is closed to new topics and replies.

You will be redirected to [title]. Would you like to continue?

Yes No