I just can't believe I cannot validate a single textbox
Guys, I need help, otherwise gonna go back to JavaScript pure and simple.
I can't validate a number in a text box.
See the code:
<script src="Scripts/jquery-1.9.1.js"></script>
<script src="Scripts/jquery.validate.js"></script>
<script src="Scripts/additional-methods.js"></script>
<script type="text/javascript">
$(function () { // i have tried without this function () also
$("FormDBORC").validate({
rules: {
TextBoxValor: {
required: true,
number: true,
minlength: 2
},
dataLancamentoTextBox: {
date: true
}
},
messages: {
TextBoxValor: "Entre com um Valor Válido!"
}
})
});
</script>
It just doesn't work. I'm tired...
Regards.