درود مجدد
کد مربوط به چک باکس
<label for="filter-view">مرتب سازی بر اساس بازدید</label>
<input type="checkbox" id="filter-view">
کد AJAX
<script>
$(document).ready(function(){
$("#filter-view").change(function(){
if(this.checked) {
$.ajax({
type : "GET",
url : "<?php echo home_url('/'); ?>",
data : {
do : 'filterview'
},
beforeSend : function() {
$("#loading").fadeIn(); // show loading
},
success : function(response) {
$('#result').html(respo