All roads lead to JavaRanch
Originally posted by Gaurav Pawar: Please suggest what the problem could be.
[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
Originally posted by Gaurav Pawar: x1=y1.options[y1.selectedIndex].value;
Originally posted by Eric Pascarello: .value is bringing back a string and not a number so if(x2<x1) is doing a string comparison. You should use parseInt() before doing the comparision. Eric