I want to disable the input text after the user clicks on another input tag with checkbox type,
The problem is that the date range input text is not disabled every time I click on the checkbox, can anyone help?
function myFunction() { document.getElementById("daterange").disabled = true; }
Everyday
edit:I just realized that when the page is not fully loaded it works as I expected, but if the page is fully loaded there seems to be something that prevents the functionality from working
Maybe you can try usingalpineJS
in laravelIf you use laravel brezze, alpine JS is already included. We can easily manipulate our DOM without writing a lot of JS code. Just write in inline HTML