Click here to Skip to main content
15,922,696 members

Comments by nathan666 (Top 18 by date)

nathan666 24-Apr-13 3:39am View    
so it would be

"<input type="text" name="timeOff" class="DatePicker-needed">|"

and as the loop runs it creats multiple instances of name="timeOff" with class="DatePicker-needed"?
nathan666 24-Apr-13 3:01am View    
Below is the jquery initialized

$(function() {
$("#timeOff").datepicker({ dateFormat: "dd/mm/yy", yearRange: 'c:c+10', changeMonth: true, changeYear: true});
$('#timeOff2').each(function(){
$(this).datepicker({ dateFormat: "dd/mm/yy", yearRange: 'c:c+10', changeMonth: true, changeYear: true});
});

and this is where the datepicker instance is created

<input id="timeOff2" class="datepicker"/></input>
}
nathan666 21-May-12 5:01am View    
Deleted
sorry the code is below, dont know if this is what you asking
defined('DTC_PATH_ROOT')
|| define('DTC_PATH_ROOT',
realpath(dirname(__FILE__)
. DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR);

$section = 'site';

require_once DTC_PATH_ROOT . 'lib' . DIRECTORY_SEPARATOR . 'init.php';
nathan666 21-May-12 5:00am View    
require_once DTC_PATH_ROOT . 'lib' . DIRECTORY_SEPARATOR . 'init.php';
nathan666 17-Feb-12 4:45am View    
It was just a php varaible that was not set