Kan iemand mij vertellen waarom dit niet werkt?:$
<div class='add'>
<BUTTON TYPE="submit" title="Toevoegen" onClick="toevoegen('<?=$ida?>');" class=".button" style="width: 38px;">
<IMG SRC='images/add.png' ALIGN='absmiddle'></BUTTON>
</div>js:
<script type="text/javascript">
function toevoegen(id)
{
$(".fouten").html('');
$.get('/ajax.php?action=toevoegen',
{
id : id
},function(data){
if(data == 'gelukt')
{
ReloadSelectie();
}
else
{
$(".fouten").html(data);
}
});
}
</script>
In google chrome en firefox werkt het wel.
Alvast bedankt.