$(function(){
const assetType = $("#AssetType").text().trim();
if (assetType === "Laptop") {
$("#hidden-panel2").hide();
$("#hidden-panel3").hide();
}
});
If it still doesn't work, then you need to debug your code to find out what the actual value of the
AssetType
label is.