and that fails,
What fails exactly? The validation on your server? The request it self (500?)
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have the following JS:
$.ajax({
url: $(this).attr('action'),
method: "POST",
data: {
"star_split": true
}
})
and that fails, but:
$.ajax({
url: $(this).attr('action'),
method: "POST",
data: {
"star_split": 1
}
})
Passes
I ultimately want to use $("input[name='star_split']").is(':checked'), but "true" fails so do I have to do a conversion to an integer every time?
Please or to participate in this conversation.