I want to limit the content from appear in list drop box.. for example, i select the europe location in the first list drop and i want only europe country to appear in the second list drop.. can u giv the coding example… please help me…?
@iokosanFeb 14.2009 — #Here it is ? <i> </i><html> <head> </head> <body> <select id='first' onchange='choice(this)'> <option value='0'>-</option> <option value='1'>a</option> <option value='2'>b</option> </select> <select id='second'> </select> <script> function choice(t){ var a = [1,2,3]; var b = [4,5,6,7]; s = document.getElementById('second'); var sl = s.options.length; for(var i = sl-1; i >= 0 ; i--) s.options[i] = null; if(t.value != 0){ var c = (t.value == 1)? a : b; var l = c.length; for(i = 0; i < l; i++ ) s.options[i] = new Option(c[i],c[i],false,false); }