Event from radio buttons?

So when you click make crazy item white.
$( "input.th_radio:radio" ).on( "click", function() {

 if($(this).is(":checked")) {
 $(".th_svg path").css("fill", "#ffffff");
}


 })


How to catch event when ceceda other item to this item to make a different color???
July 8th 19 at 11:40
3 answers
July 8th 19 at 11:42
Solution
it is necessary not to click to catch and change
July 8th 19 at 11:44
Solution
$("input.th_radio:radio").on("click", function(){
if($(this).prop("checked")){
 $("all other").css("fill", "#ffffff");
 $(this).css("fill", "this is becoming the new style");
}
});
Checkboxes and radio buttons, you can toggle the space bar when they are in focus. Catch the change event as suggested. - fleta.McLaughl commented on July 8th 19 at 11:47
: https://jsfiddle.net/mcmraak/t16zh0w3/ Works considered for per click - charlene commented on July 8th 19 at 11:50
: Although the hands is also responsive, so your advice is better! - charlene commented on July 8th 19 at 11:53
July 8th 19 at 11:46
Consistently do 2 actions
1) all the elements to make one colour(white for example)
2) the item you want to highlight
after clicking it remains white, even though in css it #000 - fleta.McLaughl commented on July 8th 19 at 11:49

Find more questions by tags CSSjQueryHTML