In my page I have some checkboxes.I need to pass the checked values through url as query string. here is my checkbox code
<div class="panel-body">
<div class="rowElem">
<input type="checkbox" name="chbox" id="">
<label>Color #1</label>
</div>
<div class="rowElem">
<input type="checkbox" name="chbox" id="">
<label>Color #2</label>
</div>
<div class="rowElem">
<input type="checkbox" name="chbox" id="">
<label>Color #3</label>
</div>
</div>
my initial url is like www.test.com if I check the color #3 then the url will look like www.test.com/?color=color #3
How to done this using ajax.???