我已经合并了这个简单的 datetimepicker:http ://trentrichardson.com/examples/timepicker/#rest_examples
所以看起来
<?php $tabname = "brightness"; ?>
<script type="text/javascript">
$('#datumstartbrightness').timepicker();
</script>
...
<input type="text" name="datumstart<?php echo $tabname; ?>"
id="datumstart<?php echo $tabname; ?>"/>
...
使用此代码它可以工作并出现 datetimepicker !
但是有了这个...
<?php $tabname = "brightness"; ?>
<script type="text/javascript">
$('#datumstart<?php echo $tabname; ?>').timepicker();
</script>
...
<input type="text" name="datumstart<?php echo $tabname; ?>" id="datumstart<?php echo $tabname; ?>"/>
...
DateTimePicker 没有出现。这条线有什么问题
$('#datumstart').timepicker();