【发布时间】:2013-12-15 18:09:01
【问题描述】:
我正在尝试在复选框的页面真实列表上加载结果
我这里有这个代码 - http://css-tricks.com/dynamic-page-replacing-content/
我想做这样的事情:
$("#form_id").delegate("input", "click", function() {
window.location.hash = $(this).attr("href");
return false;
});
但我在网址的末尾 - #undefined
我的表格是:
<form name="search" action="" method="get" id="search_form">
<div class="fluid">
<div style="padding-right: 5px; ">
<label> computer <input class="chkd" type="checkbox" checked="checked" name="category[]" value="computers"> </label>
<label> computer <input class="chkd" type="checkbox" checked="checked" name="category[]" value="computers1"> </label>
<label> computer <input class="chkd" type="checkbox" checked="checked" name="category[]" value="computers2"> </label>
</div> </div>
</form>
有什么想法吗?
【问题讨论】:
-
你的 HTML 是什么?
input没有href属性。
标签: javascript ajax forms url