i want to insert data into table when checkbox is checked and delete data from table when check box is uncheked for that i a am using this ajax code.. is there any event that will fire when checkbox changed and checkbox uncheked
code :
<script type="text/javascript">
$(function() {
//$(".tb11").click(function(){
$(document).on('click', '.clUname', function(event)
{
//Save the link in a variable called element
var element = $(this);
var table = $('#selecttable').val();
//Find the id of the link that was clicked
var del_id = element.attr("id");
//Built a url to send
//var info = 'id=' + del_id,'&selecttable=' + table
if(confirm("Are You Sure You Want Delete This Record."))
{
$.ajax({
type: "POST",
url: "DeletePropertyGalleryData.php",
data:
{
id: del_id ,selecttable: table
},
success: function(){
}
});
}
return false;
});
});
</script>
didnt get any solution. Copy pasting the above comment gave me a dozen of results. See this google.co.in/…