View Single Post
Old 03-08-2012, 10:35 AM   PM User | #11
aroj
New Coder

 
Join Date: Mar 2012
Posts: 13
Thanks: 2
Thanked 0 Times in 0 Posts
aroj is an unknown quantity at this point
Quote:
Originally Posted by webdev1958 View Post
actually, you don't need the first return false;

Code:
        
        function validate(){             
            var selO = document.getElementById('merchant');             
            if(selO.selectedIndex == 0){                 
                 alert('You have not made a selection');             
           } else {
                 window.location.href = selO.value;             
           }             
           return false;           
       }
Thanks, I tried with and w/o return false, and there is no improvement.
aroj is offline   Reply With Quote