hi,
i want validate my dropdown list, just i want to check the dropdown have any value..
please give a solution
my code is
<form method="post" action="/UploadAthletes/UploadReturn" name="second" id="second" enctype="multipart/form-data">
<div id="crt">
<label for="Coach" class="col-lg-4 col-sm-5 col-xs-11">Select Coach</label>
<span class="k-invalid-msg" data-for="name"></span>
<ul>
<li style="padding-left:10px;" class=" col-lg-4 col-sm-5 col-xs-11">
@(Html.Kendo().DropDownList()
.Name("sp")
.HtmlAttributes(new { style = "width:100%" })
.OptionLabel("Select Coach...")
.DataTextField("CoachName")
.DataValueField("CoachID")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetCoach", "UploadAthletes");
});
})
)
</li>
</ul>
</div>
i want validate my dropdown list, just i want to check the dropdown have any value..
please give a solution
my code is
<form method="post" action="/UploadAthletes/UploadReturn" name="second" id="second" enctype="multipart/form-data">
<div id="crt">
<label for="Coach" class="col-lg-4 col-sm-5 col-xs-11">Select Coach</label>
<span class="k-invalid-msg" data-for="name"></span>
<ul>
<li style="padding-left:10px;" class=" col-lg-4 col-sm-5 col-xs-11">
@(Html.Kendo().DropDownList()
.Name("sp")
.HtmlAttributes(new { style = "width:100%" })
.OptionLabel("Select Coach...")
.DataTextField("CoachName")
.DataValueField("CoachID")
.DataSource(source =>
{
source.Read(read =>
{
read.Action("GetCoach", "UploadAthletes");
});
})
)
</li>
</ul>
</div>