tags:

views:

29

answers:

0

So i have the following checkbox (tho my question relates to any type of field )

Within the same form i have

<%= Html.EditorFor(userProfile => Model.UserProfile)%>

and this validation is working fine from the following js files

<script src="/Scripts/jquery-1.3.2.min.js" type="text/javascript"></script>
<script src="/Scripts/MicrosoftAjax.js" type="text/javascript"></script>

my question, i wish to validate fields that are not part of the "EditorFor".

I could bind the click event with the following js file

However i'm wondering is this the best way to do it, or am i missing trick. Do i realy need to do this via "/Scripts/jquery.validate.min.js"