Get hyperlink from html [Solved]
Hello everyone!
I have a search where each result is surrounded by tbody and in each tbody contains a two of the same hyperlinks. Now I'm trying to get that hyperlink and direct the user using that hyperlink.
The following is what i have so far
-
$("#search_result tbody").click(function() {
var htm = jQuery.trim($(this).html());
var lnk = htm.find('href');
alert(lnk);
});
htm contains the tbody html, that is specific to each result, how can I extract the href from that.
Thank you