laimas,
<!DOCTYPE HTML> <html> <head> <title>Untitled</title> <meta charset="utf-8"> <style type="text/css"> </style> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <script type="text/javascript" src="http://lsd.do.am/jquery.zclip.js"></script> <script> $(function(){ var bb = $(".bbQuoteName"); bb.each(function(indx, el){ $(el).click(function() { alert( $(el).next().length ); }); }); }); </script> </head> <body> <div class="bbQuoteName">Блок 1</div><div class="quoteMessage">Текст 1</div> <div class="bbQuoteName">Блок 2</div><div class="quoteMessage">Текст 3</div> <textarea name=""></textarea> </body> </html> |
Да, все правильно - событие, обращаемся по селектору, получаем набор.
|
рони,
большое спасибо точно то что было нужно |
Часовой пояс GMT +3, время: 21:41. |