0
<script language="javascript">
   var rowcode=0;
   function myclick(id)
   {
     if (rowcode!=0){
        document.getElementById(rowcode).style.background="";
        rowcode=id;
        document.getElementById(id).style.background="yellow";
        }
   }
</script>     

<a onClick="ShowDiv('<?php $result=Select("select * from CourseTeacher where lessonID IN(select lessonID from Lesson where place IN(select place from Place where id=  ))");

我不知道如何将rowcode的值设置为id?

4

1 回答 1

0

为此,您必须使用 Ajax。通过ajax获取“rowcode”的值,然后在sql查询中使用!!

于 2013-09-02T12:09:26.940 回答