I have a code like below.
When I select a value in the Select option, I run the function with ‘#proje_nedir’.
I also want the function to run when I deselect the selection box.
However, without using ‘#proje_nedir’
$('body').on('change', 'input[name=farkli_kaydet]', function() {
if (!$(this).is(':checked')) {
var value = "Değer";
$('#checkboxdan').trigger('change', [value]);
}
});
$('#proje_nedir,#checkboxdan').change(function(event, value){
var val = value || $(this).val();
// devam eden kodlar
});
This code did not work $('#checkboxdan').trigger('change', [value]);
How can I run it?