I am working on a project with one dropdownlist and 5 panel elements. My goal is to have only one panel show when the dropdownlist value is changed, while keeping the rest hidden using CSS code (display:none;).
Here is the section of my code that handles this functionality:
$(document).ready(function () {
$('#DropDownList1_collection').change(function () {
if ($("#DropDownList1_collection").val() === "abcdef")
$('#Panel1_LavazemElectroniki').show();
});
});