NorthStarDA
IS-IT--Management
I need to edit someone elses Javascript Function:
i need to add to the list of appended values a hidden form field, so far it gets values from all menu selects, but it sometimes gives me an error with my revision. this is what I tried to add.
but apparently this is not the proper way to get the value, can anyone see what I'm doing wrong?
=========================================
I have not failed. I've just found 10,000 ways that won't work.
Thomas A. Edison
Code:
function DoReload()
{
window.location.href = 'location_info.php?state=' + form1.state_id.options[form1.state_id.selectedIndex].value + '&county=' + form1.county_id.options[form1.county_id.selectedIndex].value + '&district=' + form1.district_id.options[form1.district_id.selectedIndex].value + '&school=' + form1.school_id.options[form1.school_id.selectedIndex].value + '&teacher=' + form1.teacher_id.options[form1.teacher_id.selectedIndex].value;
}
i need to add to the list of appended values a hidden form field, so far it gets values from all menu selects, but it sometimes gives me an error with my revision. this is what I tried to add.
Code:
+ '&vm_user_id=' + form1.vm_user_id.value;
=========================================
I have not failed. I've just found 10,000 ways that won't work.
Thomas A. Edison