Skip Navigation

[Resolved] scripts merge

This support ticket is created 6 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 6 years, 8 months ago.

Assisted by: Luo Yang.

Author
Posts
#637530

HI Luo. could you assist on how to combine both lines of codes pls.

     $('input[value="landed-houses"]').on('change', function() {
        if($('input[value="landed-houses"]:checked').length > 0){
        $("div[data-target='#collapse-res-feat']").parent('div.panel-info').show(); 
        }
      else{
        $("div[data-target='#collapse-res-feat']").parent('div.panel-info').hide(); 
          }
      })
     $('input[value="condominiums"]').on('change', function() {
        if($('input[value="condominiums"]:checked').length > 0){
        $("div[data-target='#collapse-res-feat']").parent('div.panel-info').show(); 
        }
      else{
        $("div[data-target='#collapse-res-feat']").parent('div.panel-info').hide(); 
          }
      })

thank you .

#638007

Same as your another thread:
https://toolset.com/forums/topic/checkbox-state-as-conditional-in-layout-filter/#post-637990

it is a custom JS codes problem, if you still need assistance for it, please provide a test site with same problem, also point out the problem page URL and where I can edit your JS codes, I need a live website to test and debug. thanks

#654216

HI. . will follow up once the staging site is UP. thanks.

#654785

OK, please update this thread when test site is ready. Thanks