How to do multiple validation with formvalidation plugin

228
November 23, 2016, at 12:46 PM

I am using formvalidation plugin. I am using lessThan validator. I know validating it like

myVar: {
    validators: {
        lessThan: {
            value: check1,
            message: 'Please enter a value less than or equal to %s'
        }
    }
}

Now the issue is I want to validate myVar with 2 values check1 & check2. I tried

myVar: {
    validators: {
        lessThan: {
            value: check1,
            message: 'Please enter a value less than or equal to %s'
        },
        lessThan: {
            value: check2,
            message: 'Please enter a value less than or equal to %s'
        }
    }
}

But it gives error when using strict mode.

How I can achieve lessThan validation with 2 variables

READ ALSO
How to only show main menu on sticky menu

How to only show main menu on sticky menu

I have been looking up into how to do the sticky menu and have checked many tutorials. I also checked some related questions here but there seems to be view answers and it still doesn't work on my end.

273
Hide div inside list item if another div is empty

Hide div inside list item if another div is empty

I have several <div> elements of different classes within each <li> element. If one of them having a testsimonial-content class is empty, how can I hide another div of class testsimonial-heading within the same <li> as well? It shouldn't...

272
How to retrieve value from query string with AngularJS

How to retrieve value from query string with AngularJS

I got alot of progress in my previous project and needed a final piece of help i just cant seem to get. .

332