I'm trying to make a ticket fill automatically when selecting a row from a table. In this case, there are textboxes (or type inputs) that must be filled with some values. My role is
function verBoleto(nossonumero,valor,dataemissao,datavencimento,razaosocial){
var d = new Date();
d.setDate(d.getDate());
$('#dataProc1').datepicker({
dateFormat: "dd/mm/yy",
});
// Data de processamento é a data atual.
$("#dataProc1").datepicker('setDate',d);
$("#dataProc2").val($("#dataProc1").val());
$('#nossoNum1').val(nossonumero);
$('#valDoc1').val(valor).replace('.',',');
$('#dataDoc1').val(dataemissao);
$('#vencDoc1').val(datavencimento);
$('#sacado1').val(razaosocial);
}
But for now without much result. The nossonumero field is populated without problems. The value field is showing number with a period before the decimal places or instead of comma. The issuance and maturity dates are coming with comma number (06/01/2015 comes 0.00008271298593879239, for example). And the business name is not even populated in Textbox.
What can you do in this case?