I am having a if / else statement that display a div containing images. There are two images, Image 1 & Image 2.
And a dropdown of two selections. by choosing one option value and first image the condition logic working fine.
Query: when change to second image and choosing the option value how to make the condition work and display a different div
HTML
<p class="text-center accuracy">
<span id="img-left" class="arrow" onclick=larrow();>
<i class="fas fa-angle-left"></i></span>
<span id="changer-txt" class="accuracy changedtext">Image 1</span>
<span id="img-right" name="cat" class="arrow" onclick=rarrow();>
<i class="fas fa-angle-right"></i></span> <br /> <span> </span>
</p>
JS
if ($('#dropdown').val() == 'Timeseries' && $('#changer-txt').val() == 'Image 2') {
$('#time_black_low').show();
}
changer-txt statement is not true and condition not working.