Я пытаюсь выполнить al oop, когда установлен флажок, когда я нажимаю #testone, флажок устанавливается, но if не выполняется?
jQuery(document).ready(function() {
jQuery('#testone').click(function() {
jQuery('input[value="15"]').prop("checked", true);
if (jQuery('input[value="15"]').is(':checked')) {
postcategories.push(checked);
jQuery('.texts').html(postcategories);
}
});