Hi all
trying to apply timepicker function to various answer fields, using just one function code...
no java knowledge, I tried this but not working..
$(document).ready(function(){
var answerArray="#answer97841X5X16SQ001_SQ002,#answer97841X5X16SQ002_SQ002,#answer97841X5X16SQ003_SQ002".split(',');
$(answerArray).timepicker({
timeText: 'Hora',
hourText: 'hora',
minuteText: 'minutos',
closeText: 'Fechar'
});
$(answerArray).attr('readonly', 'readonly');
});
</script>
Please, can you explain what im doing wrong?
thanks.
trying to apply timepicker function to various answer fields, using just one function code...
no java knowledge, I tried this but not working..
$(document).ready(function(){
var answerArray="#answer97841X5X16SQ001_SQ002,#answer97841X5X16SQ002_SQ002,#answer97841X5X16SQ003_SQ002".split(',');
$(answerArray).timepicker({
timeText: 'Hora',
hourText: 'hora',
minuteText: 'minutos',
closeText: 'Fechar'
});
$(answerArray).attr('readonly', 'readonly');
});
</script>
Please, can you explain what im doing wrong?
thanks.