PHP
$output_string .= '<td><button id="changeButton" type="button" onclick="deleteAdress('. $row['adresses_id'] .', "'. $row['adresses_street'] .'");">Ta bort</button></td>';
Javascript
function deleteAdress(adressID, adressStreetName) {
alert(adressID);
}
I'm trying to create a button in php with onclick should make an alert box (for now). When i send numbers it works. But when one string contains text i stops working. Nothing. No alert box at all. I have also tried without the double quotes.
If you can see any problem please tell me. :)