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 Quote Link to comment 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]); } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.