Posted: 3/28/2010
Experts,
I need to select all those anchors which contains # as href like
<a href="#">.....</a>
I need to do it with jquery.
Posted: 4/5/2010
Hi,
http://dev-tips.com/featured/jquery-tip-using-xpath-selectors
http://groups.google.com/group/jquery-en/browse_thread/thread/8c5fc785291bb915?pli=1
good luck
Posted: 4/19/2010
<html xmlns="http://www.w3.org/1999/xhtml" > <head > <title></title> <script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"></script> </head> <body> <a href="#" id="a1">a1</a> <a href="#" id="a2">a2</a> <a href="#abc" id="a3">a3</a> <a href="#def" id="a4">a4</a> <a href="#" id="a5">a5</a> </body> <script type="text/javascript"> $(function () { var anchors = $('a[href=\'#\']'); //now test it $.each(anchors, function (index, anchor) { alert(anchor.id); }); }); </script> </html>