Я пытаюсь попробовать себя как в w3school, и мне нужна помощь. это где я получаю до сих пор:Попробуй свой собственный html с jquery
<input value="Update page" type="button">
<textarea id="mycode"></textarea>
<iframe id="display"></iframe>
another tryityourself:
<input value="Update page" type="button">
<textarea id="mycode"></textarea>
<iframe id="display"></iframe>
$(document).ready(function() {
$('input:button').on('click', function() {
var x = $(this).next().val();
frames['display'].document.documentElement.innerHTML = x;
});
});
but what i want is the html will show in the iframe near the closest textarea.
i hope you understand what i mean.
please help me.
бы все это быть полезным, а не заново изобретать колесо? http://doc.jsfiddle.net/use/embedding.html –