Сообщение от ild
|
А как все остальное получить, допустим всю строку целиком, атрибуты дочернего тега img и т.д.
|
Как вариант...
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<!--
<link rel="stylesheet" type="text/css" href="tmp.css" />
-->
<style type="text/css">
</style>
<script type="text/javascript">
$(function () {
$('a').click(function (){
alert(this.childNodes[0].src);
});
});
</script>
</head>
<body>
<a class="aild" href="http://javascript.ru/"><img src="http://javascript.ru/q1.png" name="imgild" class="imgild" /></a>
</body>
</html>