Hi all,
I am learning JQuery.
<Div ID="top">
<DIV ID="testing1">
<DIV ID="testing2"><DIV ID="testing3">...<DIV ID="testing100"></Div>
Since there are tens of DIV tags with different ID generated by a PHP file And I am trying to pass a dynamic ID of a DIV tag to a JQuery self-defined function:
<script>$(function() {
$("div").mouseover(function() {
var ID = $(this).children().attr('id');
alert(ID); });}); </script>
But it wont work.