I have used some code to fill my inputs bij an onclick function. Now the first line works but it seems that he skips the other lines what can I do?.
This is my code:
var InputProduct = document.getElementById("product");
var InputNaam = document.getElementById("Anaam");
var InputPrijs = document.getElementById("APrijs");
var InputVolgorde = document.getElementById("AvolgNR");
function fill($name, $prijs , $volgorde)
{
InputProduct.value = $name;
InputNaam.value = $name;
InputPrijs.value = $prijs;
InputVolgorde.value = $volgorde;
}
and this is how i use the onclick:
onclick="fill('<?php echo $adviesprijzen['Naam']; ?>', '<?php echo $adviesprijzen['BedragInclBTW']; ?>', '<?php echo $adviesprijzen['volgorde']; ?>')"