【发布时间】:2013-01-04 07:50:30
【问题描述】:
您好,我正在制作<select> 下拉菜单并尝试制作它,因此当有人单击下拉选项之一时,它将打开新窗口,同时单击主页的 PHP 变量选项应该通过到那个新窗口
谁能告诉我哪里错了,这是我的代码-
<div class='fieldgroup'>
<label for=@label>@label</label>
<select name="@label" title="select optin" style="cursor:pointer;cursor:hand;text-align:center;font-weight:bold;float: left;margin: 10px 0px 0px 0px;height: 25px;">
<option>@option1</option>
<option <a href="#" onclick="window.open('@newwindow.php?@value=<?$@value?>','newWindow','width=800,height=600,left=150,top=200,toolbar=no,addressbar=yes,resizable=false');"></a>>@option2</option>
<option>@optin3</option>
<option>@optin3</option>
<option>@option4</option>
</select>
</div>
【问题讨论】:
-
Psst,这里的语法高亮应该是一个主要线索,你可能会出错。您还应该始终引用您的属性,并且应该确保名称和 ID 中使用的字符实际上可以合法使用...
-
您可能想要检查一些 jQuery 处理以及一些 Google 搜索。
标签: php javascript html