aijosh
Member
Hello,
I am having issues with the Isgreaterorlessthan validation.
I have two dropdowns populated using:
$year = (int)date("Y");
for ($x = 0; $x < 100; $x++) {
$options[] = JHTML::_('select.option', $year, $year);
$year = $year - 1;
}
return $options;
I have validation on one of the dropdowns(From Year) to check if the value is greater than that of the other dropdown(To Year).
The validation always fails whether the value is greater than, equal to, or less than.
What am I doing wrong
I am having issues with the Isgreaterorlessthan validation.
I have two dropdowns populated using:
$year = (int)date("Y");
for ($x = 0; $x < 100; $x++) {
$options[] = JHTML::_('select.option', $year, $year);
$year = $year - 1;
}
return $options;
I have validation on one of the dropdowns(From Year) to check if the value is greater than that of the other dropdown(To Year).
The validation always fails whether the value is greater than, equal to, or less than.
What am I doing wrong