2015-12-14 196 views
-2
<button type="button" onclick="saveNewData()" style="position: fixed;left: 150px;top: 90px;">Eintragen</button> 
<p style="position: fixed; left: 20px">Max.6 Fahrer</p> 
<script> 
function saveNewData(){ 
    var Name = $('#Namen :selected').val(); 
    var Autos = $('#Autos :selected').val(); 
    var dataString = "decision=saveData+Name+Autos"; 
     $.ajax({ 
     type: 'POST', 
     url: 'queries.php', 
     data: dataString 
     }); 
} 

按鈕沒有調用該功能時,我點擊它是什麼錯誤?按鈕不執行功能

+0

'console',Ending'上有什麼錯誤