我特林加載結果頁面真實的複選框的名單上加載頁面
我這裏有這個代碼 - http://css-tricks.com/dynamic-page-replacing-content/
和我想要做的財產以後這樣的:
$("#form_id").delegate("input", "click", function() {
window.location.hash = $(this).attr("href");
return false;
});
,但我在url結束了 - #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'屬性。 – Salman