I have a checkbox and want to verify that it's checked before I go to the next web page screen with Next/Previous buttons. I'm relatively new to web pages, and this is what I have so far. I'm not sure how to make it conditional to see if it's checked and then permit them to go the next page if it's checked.
This is what I have so far:
<div>
<div class="site-section">
<h4 class="site-header"><b>Facility where applying for privileges: </b></h4>
<hr />
</div>
<table class="table table-bordered" width="100">
<tbody>
<tr>
<td>
<div class="col-md-12">
<div class="col-md-16">
<div>
@Html.EditorFor(model => model.PrivilegesFac)
<label for="PrivilegesFac">Facility (FAC)</label>
</div>
</div>
</div>
</td>
</tr>
</tbody>
</table>
<footer class="col-xs-12 form-group text-right">
@(Html.Kendo().Button()
.Name("Previous")
.Content("Previous")
.Events(ev => ev.Click("onPreviousClick"))
.Events(ev => ev.Click("onClick"))) <!--I added this-->
@(Html.Kendo().Button()
.Name("Next3")
.Content("Next")
.HtmlAttributes(new { @class = "k-primary" })
.Events(ev => ev.Click("onNextClick"))
.Events(ev => ev.Click("onClick"))) <!--I added this-->
</footer>
</div>
<script> <!--I added this-->
function onClick(e) {
kendoConsole.log("event :: click (" + $(e.event.target).closest(".k-button").attr("id") + ")");
}
</script>
I was looking at event on click telerik but I don't think I can have two button events. Maybe I need to add the next/previous thing to the onclick script? Plus, how do I check to see if that checkbox is checked so I know to go to the next/previous page?
Aucun commentaire:
Enregistrer un commentaire