I have a .cshtml view that has a button and a text box that is a datepicker. How do I disable the button with id = "submitButton" if the textbox is null? Thanks
<input id="submitButton" type="submit" value="blah" disabled="@ViewBag.blah"
class="btn btn-default" />
@Html.Label("my label:")
@Html.TextBox("Closed", "", new { @class = "datepicker" })