Hi
I have this on an edit page and I want to hide the following
@Html.LabelFor(model => model.StoreID, htmlAttributes: new { @class = "control-label col-md-2" })
@Html.EditorFor(model => model.StoreID, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.StoreID, "", new { @class = "text-danger" })
How do I do that?
Thanks in advance
Regards
Asma KhalidPosted Feb 16, 2020, 11:11 PM
Laxmidhar SahooPosted Feb 16, 2020, 11:13 PM
Schleid AlexPosted Feb 16, 2020, 10:41 PM
Shweta LodhaPosted Feb 16, 2020, 9:10 PM
var x = document.getElementById("divID");
if (x.style.display === "none") {
x.style.display = "block";
} else {
x.style.display = "none";
}
}