console.log("doc_ready"); $(document).ready(function(){ $(function() { $(".sidebox").jScroll(); }); var ado = ''; var appendx = ''; var pricesx = ''; var pricesp = ''; if (ado != '') { var ados = ado.split(","); for(var i=0;i
" + name + "
" + gprice + " €" ; appendx += showsetup; appendx += "
" ; pricesx = ((pricesx * 100 / 100) + (gprice * 100 / 100)).toFixed(2); pricesp = ((pricesp * 100 / 100) + (pprice * 100 / 100)).toFixed(2); } $( "#addons" ).append(appendx); document.getElementById('ao').value = pricesx; document.getElementById('aop').value = pricesp; } });