shan_cool Posted March 7, 2006 Share Posted March 7, 2006 Hi All, This validation is for onchange for 3 combo boxes,The funtionatily works fine but wht happens is if i select the project name the value of it is retained in the combo box but if i select the module name the project name and the module name both r refreshed wht shld i do ?the code wht i did is as follows:Javascript codefunction window_onload() { var qs=location.search.substring(1,location.search.length); var pair = qs.split('='); temp1= unescape(pair[0]).split('+'); temp = unescape(pair[1]).split('+'); if(temp1=="prj_name") { document.form1.prj_name.value=temp; } elseif(temp1=="prd_name") { document.form1.prd_name.value=temp; } } function Project_onblur() { var my_prd= ""; var index1=document.form1.prj_name.selectedIndex my_prd=document.form1.prj_name.options[index1].value window.location= "log_defect_sam3.php"+"?prj_name="+my_prd; } function Product_onblur() { var my_prd1= ""; var index1=document.form1.prd_name.selectedIndex my_prd1=document.form1.prd_name.options[index1].value window.location = "log_defect_sam3.php"+"?prd_name="+my_prd1; }can anybody help me?Thanksshan Link to comment https://forums.phpfreaks.com/topic/4299-combo-box-validation/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.