counter field by javascript dropdown menu
i work this javascript code menu :
var MyItems = new Array("1","2","3");
this.getField("Dropdown14.0").setItems(MyItems);
now i want a script help if user choose option "2" then count ++ field name BOX (1...2...3..4...5..............)
i try this but not working :
count=0
if (event.value=="2")
{
count ++;
}
