is this right? I don't think it is b/c the $name and other variables come back empty...any thoughts/suggestions?
function create_datepicker($datetype) {
$value = empty($value) ? date("m/d/Y", strtotime(now)) . " 8:00 pm" : date("m/d/Y g:i a", strtotime($value));
if($datetype == date_only) {
?>
<script>
jQuery(function() {
jQuery('.alternate').datepicker();
});
</script>
<?php
return '<input name="' . $name . '" id="' . $css_id . '" type="hidden" class="' . $css_classes . '" value="' . $value .'" />' . '<input name="alternate_date" type="text" id="alt_with_time" class="alternate" value="' . date("m/d/Y", strtotime($value)) . '" />';
}
thanks