日期:2014-05-17 浏览次数:20780 次
<!---下面是htm直接设定html的select的代码---->
<select id="showOrder_21" name="truck" class="dropdown" style="margin-left:0px !important; border:1px solid #BABABA !important;">
<option value ="1">QAZ123</option>
<option value ="2">WSX234</option>
<option value ="3">EDC345</option>
<option value ="4">TGB456</option>
</select></td>
<select id="showOrder_21" name="truck" class="dropdown" style="margin-left:0px !important; border:1px solid #BABABA !important;">
<?php
$query = "select * from transport.truck order by carNum";
$data = getAll($query);
foreach($data as $each)
{
?>
<option value="<?php echo $each['carNum']; ?> "><?php echo $each['licNum'];?></option>
<?php } ?>
</select></td>
<script type="text/javascript">
$(document).ready(function(){
$(".LeftTask").click(function(){
$(this).css("background","#A8A8A8");
$(this).siblings().css("background","white");
var orderID = $(this).find('input').val();
$.ajax({
type:"get",
url:"main/ajax.php",