Logic for multiple and single select/combo boxes

Below is my code: When select-box or combo-box is looped for ten times then I am getting form[“city”] length as 10 properly and behaviour of alerts within combox-box is appropriate, but if I have a single-select-box, then instead of giving form[“city”] length as 1 it gives it as 4 which is the number of option elements in my dropdown-box. So my logic doesn’t work here. How do I make it work for both single as well as multiple combo/select boxes. Any help would be appreciated. Answer Please use a javascript library like jQuery for cross-browser compatibility. You can use the

Javascript disabling Div element on submit

The code below just hides the movie that I am playing behind. Remove element (if possible) or disable it, specially movie playing in background. I tried using document.video.disabled=true; but its not working. Any idea how to go around this problem please? Answer Try