Luis Flores

Generation

class from descriptionThu, 25 May 2023

desbloquear inputs con checkbox

async function check_checkbox() { const data = await $.ajax({ type: "GET", url: "/check_checkbox", data: { 'checkbox': $("#checkbox").is(':checked') } }) $("#input_1").prop('disabled', !data.checkbox) $("#input_2").prop('disabled', !data.checkbox) }

Javascript
Generate More

Want to kickstart your project?Use the new AI Studio to create your code