K
K
ksshk2018-04-26 13:24:58
SVG
ksshk, 2018-04-26 13:24:58

How to hide/show svg elements on click on another svg element?

There is some image inserted on the page .. .. Consists of various path, circle, line.
The goal is to show/hide some circles when clicking on a specific path.
The difficulty is to associate clicking on one element and changing another element.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2018-04-26
@ksshk

$('#odinElement').on('click',function(){ 
    $('#drugoiElement').remove();
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question