I want to redirect to another page when a checkbox is clicked.
because this is not a jQuery object. you need to use $(this).val();