我有一个动态制作的网址;
...
<select name= sales_id >
<option>
<option onclick= select_person(2) >name1
<option onclick= select_person(3) >name2
<option onclick= select_person(4) >name3
</select>
<h2 style= text-align:center;font-size:120%; >Planned Activities</h2>
<table width= 100% border= 1 cellspacing= 0 cellpadding= 3 >
<th>Week Opened</th><th>Week Closed</th><th>Company<br>
<select name= text >
<option>
<option onclick= filter_company(comp1) >comp1
<option onclick= filter_company(comp2) >comp2
<option onclick= filter_company(comp3) >comp3
<option onclick= filter_company(comp4) >comp4
<option onclick= filter_company(comp5) >comp5
</select>
...
在js档案中,我有;
function select_person(userid) {
var link="welcome.php?sales_id="+userid;
document.location.href=link;
}
function filter_company(company) {
var link="welcome.php?filter=company&text="+company;
document.location.href=link;
}
选定的“人”功能发挥作用,但出于某种原因,过滤器-公司功能没有。 我正在遭受损失!