Forum : wts the error.
Brief description  about Online courses   join in Online courses
View Rashmi  kumari 's Profile

wts the error.

In this code why this is not taking value of i?plz help me.It is from Assignment 5(ques no-1).


function fooo() {
var i=0;
document.write("<form>");
for(i=1;i<=10;i )
{
document.write("<input type=text value='i'/><br><br>");
}
document.write("</form>");
}
Asked by Rashmi kumari | Aug 2, 2010 |  Reply now
Replies (2)
View rashmi kumari 's Profile
thanks a lot it solves my prb.
Aug 2, 2010
View sasmita patnaik 's Profile
Use this code
function fooo() {
var i=0;
document.write("<form>");
for(i=1;i<=10;i++)
{
document.write("<input type='text' value='"+i+"'/><br><br>");
}
document.write("</form>");
}
Aug 2, 2010