A
A
AN-132019-04-26 05:54:29
Yii
AN-13, 2019-04-26 05:54:29

Is it possible to validate-compare two dates (JUI DatePicker) on the client side?

Yii2 question - There are two JQueryUI DatePickers on a form - is it possible to do validation in terms of comparing the values ​​of these two elements on the client side in Yii2?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alex, 2019-04-26
@Kozack

Why not? You get the value of one field, the second - compare.

A
AN-13, 2019-04-26
@AN-13

I meant using the built-in Yii2 tools, i.e. the built-in compare validator. Do I understand correctly that since type can only be specified in it as string or number, then it will not be possible to correctly compare the values ​​​​of two DatePickers on the client side using it?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question