-4

Hi I have some big problem please kindly help me..

I have a html structure like this:

<html>
<body>
<div id="getInHere">Get me</div>
<iframe>
<html>
<head>

$('#clickme').click(function(){
  // i don't what should be put here to get to #getInHere div
});

</head>
<body>

<a href="#" id="clickme">Click me</a>
</body>
</html>
</iframe>
</body>
</html>

I must append something on the #getInHere and I don't know how. Please help.

Thanks.

4

1 回答 1

-1

jQuery:

$('#clickme').click(function() {
    $('#getInHere').append('text');
});

jsFiddle 现场示例:http: //jsfiddle.net/P89sa/

于 2013-03-26T23:51:20.853 回答