Jump to content

combo box Validation


shan_cool

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
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.