Hi all,

Is there someone who have any ideas of how that could be solved?

Thanks in advance.

/Jesper

On 26 Apr., 20:01, JesperDK <jespersoren...@gmail.com> wrote:
> Hi all,
>
> I use the validation 
> fromhttp://bassistance.de/jquery-plugins/jquery-plugin-validation/
> and have a problem with float values on the validation.
>
> I have implemented the following on my page:
>
> ..........
>
> <script src="/admincustomers/js/jquery-1.3.2.min.js" type="text/
> javascript"></script>
> <script src="/admincustomers/js/validate/jquery.metadata.js"
> type="text/javascript"></script>
> <script src="/admincustomers/js/validate/jquery.validate.js"
> type="text/javascript"></script>
> <script src="js/validate/cmxforms.js" type="text/javascript"></script>
>
> <script type="text/javascript">
> $(document).ready(function() {
>         $("#commentForm").validate({meta: "validate"});});
>
> </script>
>
> ....................
>
> <p>
> <label for="camountreported">Redeem</label>
> <input id="camountreported" name="amountreported" class="{validate:
> {required:true,numberDE:true,max:6.06}}" />
> </p>
>
> The problem is that the user enters his values in 4, 5,25, 6,00 or
> 6,05 etc.. (using the , sign) and the max validation only takes
> integers.
>
> How can I still make the max validation with the , sign and float
> values? The users isn't allowed to submit the form if the value is
> greater than the max value specifyed.
>
> I hope some one can help me :-)
>
> Thanks in advance.
>
> /Jesper

Reply via email to