Im having this piece of code
<div id="status">content here</div>
<input name="order_data" type="button" value="<?php echo $order;?>" class="besttocart" onclick="gotocart(this);" />
and Javascript
function gotocart(e)
{
var origtext = $('#status').html();
if(getCookie('language').toLowerCase() == 'en'){
$('#status').html('Loading');
}else{
$('#status').html('het laden');
}
$.ajax({
url: 'index.php?route=foo/bar',
type: 'post',
async:false, /*I strongly suspect something here*/
dataType:"json",
success:function(data){
//do stuff
}
});
}
The issue is in Google chrome $('#status').html()
is changing to "loading" or "het laden" when i look through console.but it is not showing in my page my status content is still "content here".
working fine in firefox