How to fetch and get value onclick checkbox in ajax php mysql

Description

Get ID and class value onclick Checkbox in ajax php mysql. How to fetch and get value onclick checkbox in ajax php mysql,

Checkbox value get without refresh value in ajax php mysql JS

How to pass checkbox ID value and class value by click to php using jquery ajax Mysql.

How to Send Ajax JavaScript Checkbox value in the AJAX using jQuery and PHP Mysql

Used in Ajax Code

var courseroomselectid = $("#roomshowselectcheck:checked").val();

courseroomselectid Value used in ajax

checkbox Code and get id = roomshowselectcheck

 <input type="checkbox" name="status" value="<?php echo $rowlinkst['courseidselect']; ?>,<?php echo $rowlinkst['courseidselect']; ?>" id="roomshowselectcheck">