Submit form dinamic nu functioneaza in Firefox, IE
Scris: Dum Mar 08, 2015
Nu functioneaza Submit la form-ul creat dinamic in Firefox IE, dar in chrome functioneaza.
Cum ar trebui modificat sa trimita in forma asta datele firefox IE, fara sa afecteze chrome?
Cum ar trebui modificat sa trimita in forma asta datele firefox IE, fara sa afecteze chrome?
Cod: SelectaĊ£i tot
$('.continua').click(function() {
if (updatePret() == 0) {
alert("Selected one ");
return
}
$form = $('<form>',{method: 'POST', action:'caseta/index.php'})
$('.tim').each(function() {
if ($('.bam td.active',this).length + $('.sam td.active',this).length == 2 + 1) {
var $bam = []
$('.bam td.active',this).each(function() {
$bam.push($(this).text())
})
var $sam = []
$('.sam td.active',this).each(function() {
$sam.push($(this).text())
})
$form.append($('<input>', {type: 'hidden', name: "tim[]", value: $bam.join (',') + ',' + $sam.join(',') + ','}))
}
})
$form.submit();
})