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 KhalidRank #160 · 14.7K reputationPosted Feb 16, 2020, 6:11 PM EST
Shweta LodhaRank #31 · 39.8K reputationPosted Feb 16, 2020, 4:10 PM EST
var x = document.getElementById("divID");
if (x.style.display === "none") {
x.style.display = "block";
} else {
x.style.display = "none";
}
}
Schleid AlexRank #3,087 · 464 reputationPosted Feb 16, 2020, 5:41 PM EST
Laxmidhar SahooRank #383 · 6.6K reputationPosted Feb 16, 2020, 6:13 PM EST
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts