174
rated 0 times
[
179]
[
5]
/ answers: 1 / hits: 68121
/ 11 Years ago, thu, june 6, 2013, 12:00:00
My iFrame looks like this:
<iframe id=iframe name=iframe1 frameborder=0 src=></iframe>
And my script looks like this:
<script type=text/javascript>
$(document).ready(function() {
$('#iframe').attr('src',http://google.com);
})
</script>
I've also tried putting quotes around the url:
<script type=text/javascript>
$(document).ready(function() {
$('#iframe').attr('src','http://google.com');
})
</script>
But neither is working.
What am I missing?
More From » jquery