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=  ))");

行コードの値を id に設定する方法がわかりませんか?

4

1 に答える 1

0

そのためには Ajax を使用する必要があります。ajaxで「rowcode」の値を取得し、SQLクエリで使用!!

于 2013-09-02T12:09:26.940 に答える