JHTML Calendar Replacement - Zebra DatePicker Help?

207 views
Skip to first unread message

shaoen01

unread,
Nov 3, 2012, 4:34:38 AM11/3/12
to joomla-de...@googlegroups.com
Hi All,

In one of the threads i posted, i had some issues with JHTML calendar's limitations and i was recommended to use Zebra Datepicker along with other great alternatives (thanks guys!). For those using Zebra DatePicker, i was wondering if there is a way to get the date selected displayed into the textbox before a user selects it?

This is to cater to a scenario where we reload the information that user has saved in the database and retrieved to edit. So i would need the date to be selected already and the date displayed in the textbox itself. If anyone has done this, can you share? Thanks!

Alan Hartless

unread,
Nov 3, 2012, 9:37:56 AM11/3/12
to joomla-de...@googlegroups.com
If I'm understanding you correctly, just populate the textfield with the value you want like you would any other input.  

<input type="text" name="mydatefield" id="mydatefield" value="2012-11-03" />

Or use JS if you need to populate it dynamically:

$('#mydatefield').val("2012-11-03"); //using jquery

Thanks!
Alan

-- 
HartlessByDesign, LLC

--
You received this message because you are subscribed to the Google Groups "Joomla! General Development" group.
To view this discussion on the web, visit https://groups.google.com/d/msg/joomla-dev-general/-/s1iFGTDUbb4J.
To post to this group, send an email to joomla-de...@googlegroups.com.
To unsubscribe from this group, send email to joomla-dev-gene...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/joomla-dev-general?hl=en-GB.

shaoen01

unread,
Nov 5, 2012, 8:05:35 AM11/5/12
to joomla-de...@googlegroups.com

Thanks a lot Alan, i didn't realize it was so easy! I was thinking i should set a property using Zebra DatePicker. Excellent recommendation!
To unsubscribe from this group, send email to joomla-dev-general+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages