Have BTN-GROUP working well with radio button, but need make it work for checkbox to.. with active class

Mbyllur Postuar 5 vite mё parё Paguhet në dorëzim
Mbyllur Paguhet në dorëzim

I have radio button that use JS for add css (active) with radio button, but not working with checkbox since if we click on another the active class is removed, since it is for radio button and we can only choose 1 with radio, but with checkbox is not working.

here is the script

<script>

$(function() {

// Input radio-group visual controls

$('.radio-group label').on('click', function(){

$(this).removeClass('not-active').siblings().addClass('not-active');

});

});

</script>

i pay 10$ now for someone give me the tricks to make it work with checkbox

.radio-group label {

overflow: hidden;

} .radio-group input {

/* This is on purpose for accessibility. Using display: hidden is evil.

This makes things keyboard friendly right out tha box! */

height: 1px;

width: 1px;

position: absolute;

top: -20px;

} .radio-group .not-active {

color: #3276b1;

background-color: #fff;

}

.radio-group .[login to view URL] {

color: #A94442;

background-color: #fff;

border-color: #A94442;

}

CSS HTML JavaScript jQuery / Prototip

ID Projekti: #18722156

Rreth projektit

4 propozimet Projekti në distancë Aktiv 5 vite mё parё

4 profesionistë freelancer dërguan një ofertë mesatare prej $16 për këtë punë

fastestJohn

Hello. I am interesting in your project. I have rich experiences in JQuery. Please look my portfolios. I am new in freelance. so I have little reviews. But I think my skills , honest and integrity is more important Më shumë

$20 CAD për 1 ditë
(5 Përshtypje)
2.6
therock12

It ' s a very simple problem. I am able to solve it in 1 - 2 hours right now only. I am a fresher but encountered the same problem you faced earlier many times. So can easily solve it for you. So please consider Më shumë

$10 CAD për 1 ditë
(0 Përshtypje)
0.0
MohamadHamad84

hi you can use the javascript on change method instead that i have exprince in doing this task and iam intersted thanks

$25 CAD për 1 ditë
(0 Përshtypje)
0.0