Reputation: 14148
I have a kendo numeric text box as follows and I would like to hide and show it depending on other kendo ui control.
My environment.
here is what my control looks like
<p>Duration of load = @(Html.Kendo().NumericTextBoxFor(x => x.DurationOfLoadK3)
.Name("DurationOfLoadK3")
.Format("#.00")
.Min(00.00)
.Spinners(false)
.Value(1.00)
)
</p>
Upvotes: 0
Views: 3594
Reputation: 14148
I figured it out...
<script>
$(document).ready(function () {
$("#divDurationOfLoadK3").hide();
});
</script>
<div id="divDurationOfLoadK3">
Duration of load = @(Html.Kendo().NumericTextBoxFor(x => x.DurationOfLoadK3)
.Name("DurationOfLoadK3")
.Format("#.00")
.Min(00.00)
.Spinners(false)
.Value(1.00)
)
</div>
Upvotes: 1