how increment the value on each click ??
Posted: Wed Apr 18, 2007 12:19 am
Hello forums !!
How to increment the value on each function call ?
Suppose i had a function called
addRow()
suppose this function is called with onclick event of button.
when clicked first time it should alert 0, 2nd time => 2 3rd time => 3..
I hope you got my question, awaiting for your valueable help.
Thanks in advance to all of you
How to increment the value on each function call ?
Suppose i had a function called
addRow()
Code: Select all
//js code
addRow(row)
{
var i = 0;
alert(i);
}when clicked first time it should alert 0, 2nd time => 2 3rd time => 3..
I hope you got my question, awaiting for your valueable help.
Thanks in advance to all of you