So, I want when i check 1 checkbox all other checkboxes become unchecked but also every element with certain title in in to hide/show.
$('.chb').click(function() {
var input_id = $(this).attr('id');
$('.chb').prop('checked', false);
$(this).prop('checked', true);
$('[title="+input_id+"]').show;
$('[title!="+input_id+"]').hide;
});
I have this.
When i click on checkbox with class .chb i want uncheck all other but also that elements with title=ID OF CHECKBOX become visible and every other become invisible.
Aucun commentaire:
Enregistrer un commentaire