Response title
This is preview!
$.cookie('callTimer', '100' , { expires: 1} ); //this works
console.log($.cookie('callTimer')); //this display 100 - correct
$.cookie('callTimer', '100' , { expires: 1, path: '/' } ); //this does NOT work
console.log($.cookie('callTimer')); //this display 0- incorrect it should be 100
an I doing something incorrect or is there a bug in the plugin?
Thanks
{"info":[{"date":"19-03-2013"}],"tt":[{"time":"19-03-2013 14:30:00"}]}
$("#countChecks").change( function() {
var inUseTotalCheck = Number( $('#inUseTotalCheck').val() );
var inUseLastCheck = Number( $('#inUseLastCheck').val() );
var totalToUse = Number( $(this).val() );
if( totalToUse > 1 ){
$('#inUseTotalCheck').val( totalToUse );
$('#inUseLastCheck').val( totalToUse )
if( totalToUse > inUseTotalCheck){
//append fields
for(var i = inUseTotalCheck+1; i <= totalToUse; ++i){
$('#checkListPanel').append(
'<div class="label-input" id="check_' + i + '">' +
'<input type="text" id="checknumber_' + i + '" name="checknum[]" value="" style="width: 120px;" placeholder="Check number..." />' +
'<input type="text" id="amount_' + i + '" name="amount[]" value="" style="width: 120px;" placeholder="Check amount..." />' +
'<input type="text" id="checkDate_' + i +'" name="checkDate[]" value="" style="width: 120px;" readonly="true" /> ' +
'</div>'
);
}
} else {
//remove fields
for(var i = inUseTotalCheck; i >= totalToUse; --i){
$('#checkListPanel').live().remove(
'<div class="label-input" id="check_' + i + '">' +
'<input type="text" id="checknumber_' + i + '" name="checknum[]" value="" style="width: 120px;" placeholder="Check number..." />' +
'<input type="text" id="amount_' + i + '" name="amount[]" value="" style="width: 120px;" placeholder="Check amount..." />' +
'<input type="text" id="checkDate_' + i +'" name="checkDate[]" value="" style="width: 120px;" readonly="true" /> ' +
'</div>'
);
}
}
}
});
© 2013 jQuery Foundation
Sponsored by and others.