I'm having trouble performing a function on a scheduling system,
Ineedtodothefollowing,whentheuserselectsadatethesystemmakesaqueryinthedatabaseandfillsinthecheckboxes.ThequeryinthedatabaseIcando,myproblemisincreatinganeventchangueinthedatefieldbycallingthequeryandpopulatingthecheckboxes.
//
InthepreviousversionofthesystemIdidusingAjax,howeverIhadaselectdatefieldandaselecttimefield,soIusedthescriptbelow,buttheclientrequestedtoswitchtothistabletemplate./p>
<scripttype="text/javascript">
$(document).ready(function(){
$("select[name=predata]").change(function(){
$("select[name=prehora]").html('<option value="">Carregando...</option>');
$.post("ajax-prehora.php?predata=13/06/2016",
{predata:$(this).val()},
function(valor){
$("select[name=prehora]").html(valor);
}
)
})
})