I have the following
<script> $(document).ready(function() { $(".mapLink").click(function(){ pos = $(this).attr("id"); alert(pos); }); }); </script> <a class="map" id="test">Test</a>
When I click Test, I get a warning ... excellent. But I also have the following ...
<script> $(document).ready(function() { $(".mapLink").click(function(){ pos = $(this).attr("id"); alert(pos); }); }); $(
When emp changes, it fires and gets the results from existingAttendTime.php and inserts it into a div, so now it looks something like ...
<a class="mapLink" id="test">Test</a> <div id="existingAttendTime"><a class="mapLink" id="12345">Return Test</a></div>
By clicking on "Test", I get a warning "test", but clicking on Return Test gives me nothing.
What am I doing wrong or what am I missing?
jquery
Jason Sep 29 '09 at 0:20 2009-09-29 00:20
source share