Closed GoogleCodeExporter closed 9 years ago
If I'm understanding correctly, you want to increase the data element's year
range. If so, you can use the example provided below as a guide. This same
example can be seen at
http://www.imavex.com/php-form-builder-class/examples/jquery.php#date.
$form->addDate("Date w/Modified Year Range:", "MyDateYearRange", "",
array("jqueryOptions" => array("yearRange" => date("Y") - 100 . ":" .
date("Y"))));
Hope that helps.
- Andrew
Original comment by ajporterfield@gmail.com
on 16 Apr 2011 at 6:37
Thanks Andrew.It is actually what i m looking for.
Original comment by sauravsh...@gmail.com
on 16 Apr 2011 at 2:22
hi guys i studied the addDate attribute and found to get the past
yearRange(like 2000-2011 by changing -ve range value)but i m not being able ta
get the year range to future(like 2008-2015)
Original comment by maharjan...@gmail.com
on 17 Apr 2011 at 4:29
hi maharjan,
Does this work for you?
$form->addDate("Date w/Modified Year Range:", "MyDateYearRange", "",
array("jqueryOptions" => array("yearRange" => "2008:2015")));
This will allow you to choose between dates 2008 all the way to 2015.
Original comment by moncojhr@gmail.com
on 21 Apr 2011 at 3:59
Original issue reported on code.google.com by
sauravsh...@gmail.com
on 15 Apr 2011 at 7:08