Jump to content

Archived

This topic is now archived and is closed to further replies.

shan_cool

combo box Validation

Recommended Posts

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 code

function 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?

Thanks
shan

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.