Insertar html - Insert html string. I'm doing wrong?
¿Qué estoy haciendo mal? - I'm doing wrong?
<head>
...
<script language="javascript">
$(document).ready(function(){
var
i=1;
while (
i<=10)
{
$("#news").html("<div id=n" +
i + " data-role=page><div id=article" +
i + "></div></div>");
i++;
}
});
</script>
....
</head>
<body>
<article id="news">
</article>
</body>