Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

139
Views
Radio button in inside materialize css accrodian header

Hi am using materialize css framework component collapsible.I want radio button checked when click on entire header and content body should expand.

HTML:

    <li class="active">
        <div class="collapsible-header">
            <label class="acc-header-radio">
                <input class="with-gap" name="selectCard" type="radio" checked />
                <span>header </span>
            </label>
        </div>
        <div class="collapsible-body">
            content body
        </div>
    </li>
    <li>
        <div class="collapsible-header">
            <label class="acc-header-radio">
                <input class="with-gap" name="selectCard" type="radio" />
                <span>header </span>
            </label>
        </div>
        <div class="collapsible-body">
            content body
        </div>
    </li>
</ul>

Jquery:

$('.collapsible').collapsible();
$('.acc-header-radio input').on('change', function() {
        if($(this).prop('checked', true)){
            var activeList = $(this).closest('li')
            activeList.addClass('active');
           activeList.children('collapsible-body').slideDown();
        }
        
    }); 
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!