チェックボックスが選択されたら、今のURLからGETパラメータを削除したURLにsubmitする
jQuery(function($){
$(function(){
$('#divタグのID input[type="checkbox"]').change(function(e){
e.preventDefault();
var url = location.href;
var parameter = location.search;
parameterIndex = url.indexOf(parameter);
if (parameterIndex > 0) {
url = url.substring(parameterIndex, parameter.length);
var protocol = location.protocol;
url = protocol + '//' + url;
}
$("#フォームのID").attr("action", url);
$("#フォームのID").trigger('submit');
});
});
});
<input type="checkbox" name="mychuno_ids" class="check" value="1" id="hoge"/>
<input type="checkbox" name="mychuno_ids" class="check" value="2" id="hoge"/>
<input type="checkbox" name="mychuno_ids" class="check" value="3" id="hoge"/><
var ids = [];
$('[name="mychuno_ids"]:checked').each(function(){
ids.push($(this).val());
});
jQuery(function(){
$('.all').on('change', function() {
$('.' + this.id).prop('checked', this.checked);
});
});
<input type="checkbox" name="all_ids" id="check" class="all" value="1"/>
<input type="checkbox" name="ids" class="check" value="14" id="hoge"/>
<input type="checkbox" name="ids" class="check" value="15" id="hoge"/>