I have import an js file from our another domain by using the following code
<script src="http://webiduga.com/myJs.js"></script>
Which consists solely of:
var a = 'Testing';
Then append that content to an existing div in the current html page
$(document).ready(function() {
$('.alert.alert-quiz').html(a);
});
This code works great in Safari and IE, but it does not work in FF and Chrome. Do you have any idea why? The code is simple but it derived me crazy the last 2 hours.
Thanks!