I have a listbox in Spotfire with countries in it. The listbox includes (None) as a selection option. When a country is selected in the listbox the country's name and a star icon appears in another test panel. After that, if (None) is selected, the country' name disappears but the star only fades out. I need it to disappear just as the text does.
Here's an example:
Here is the javascript I have in the panel for the output. The intention is to not display the icon if None is selected.
$("#b67963fdb4724d11b744affb05048a23").on('change',function(){
$("#b67963fdb4724d11b744affb05048a23 option:selected").text()=="None"?
document.getElementById($("#9bf3680df22140b9955b39c8ba6cfff8")).style.display = "hidden" :
document.getElementById($("#9bf3680df22140b9955b39c8ba6cfff8")).style.display = "visible"
})
Here's the icon properties:
How do I make the icon disappear if no country is selected?