php-laravel - The problem of comparing the size of two input values ​​in form validation in laravel
黄舟
黄舟 2017-05-16 16:56:38
0
1
502

The problem is this. I now have two input boxes to input values. During verification, I need to compare the values ​​​​of these two input boxes. If the value passed in box A is greater than the value passed in box B, It returns an error and cannot pass. It seems that using Max:value or min:value does not work. I would like to ask how to compare such verification

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(1)
漂亮男人

You can use js directly to capture input events, obtain values, compare, and output error messages;
To be more secure, it is OK to set a judgment when submitting in the background.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!