0
내가 (PHP를 통해) 아약스와 datas를로드 실행되지 않습니다날짜 선택기는
는 $retour.= '
<table id="dates_stages_comp">
<tr>
<th>Nom</th><th>Prénom</th><th>Matricule</th><th>Année</th><th>Dates début</th><th>Date fin</th><th> </th>
</tr>';
foreach($resultatSQL as $ligneSQL)
{
$retour .= '<tr><td>'.$ligneSQL->nom.'</td>';
$retour .= '<td>'.$ligneSQL->prenom.'</td>';
$retour .= '<td>'.$ligneSQL->matricule . '</td>';
$retour .= '<td>'.$ligneSQL->annee.'</td>';
$retour .= '<td>'.$ligneSQL->date_debut_stage_comp.'</td>';
$retour .= '<td><input id="datepicker_debut_s_c" type="text" value="'.$ligneSQL->date_fin_stage_comp.'" /></td>';
$retour .= '<td><input id="datepicker_fin_s_c" type="text" value="'.$ligneSQL->date_fin_stage_comp.'" /></td>';
}
$retour.='</table>';
echo $retour;
retour is back in french
This is my js code :
$('#datepicker_debut_s_c').datepicker(
{
dateFormat: 'dd-mm-yy',
changeYear: true,
maxDate: null
});
$('#datepicker_fin_s_c').datepicker(
{
dateFormat: 'dd-mm-yy',
changeYear: true,
maxDate: null
});
alert($('#datepicker_debut_s_c').length);
$.ajax
(
{
type: 'POST',
url: 'dates_stages_complermentaires.php',
dataType: 'text',
success: function(retour)
{
$('#dates_infos_stages_comp').html(retour);
},
error:function(retour)
{
alert(retour);
}
}
);
문제는 내 날짜 선택기가 실행되지 않을 것입니다 ...
alert($('#datepicker_debut_s_c').length);
나에게 0
을 제공합니다위 코드는 안에 있습니다 :
$(document).ready(function() {
오랜 시간 이래로 내 사이트에서 jquery-ui를 사용하고 있습니다. 새로운 날짜 선택 도구 – user3553866
을 ajax의 성공에 넣기를 원했습니다. –
그게 내가 한 일이고, 잘 작동 해, 고마워 !!! – user3553866