Lijoyx Posted October 18, 2007 Share Posted October 18, 2007 hai all, my question is can we have a for or foreach loop like foreach(control as con) { if(typeOf(control=='textbox') alert(con.value); } i have little ideat about the foreach loop Link to comment https://forums.phpfreaks.com/topic/73762-select-from-control-array/ Share on other sites More sharing options...
emehrkay Posted October 18, 2007 Share Posted October 18, 2007 in JS (outside of ff), it is a for in loop for(key in arr){ alert(arr[key]); } Link to comment https://forums.phpfreaks.com/topic/73762-select-from-control-array/#findComment-372255 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.