This topic contains 2 replies, has 2 voices, and was last updated by Ayushi Sangal 9 years, 7 months ago.
- Topic
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>
The forum ‘OroPlatform – HTML, JavaScript, CSS, Design Questions’ is closed to new topics and replies.