I have a checkbox, populates the combox on both checked and unchecked. I am using AJAX to populates. When checkbox is checked, It works fine, but when I unchecked It wont work, actually it wont do anything.
<input type="checkbox" name="course_inactive" id="course_inactive" onclick="courseStatus(document.getElementById('batch').value, document.getElementById('batch').value)">
If remove courseStatus() function is removed, it shows both values.