Please explain to the fool why this code does not work:

$('a[href^=http://]').each(function(){ var exlink = $(this).attr('href'); $('#bibList').append('<li>' + exlink + '</li>'); }); 

It produces a syntax error, and how then to search for external urlami?

    1 answer 1

     $('a[href^="http://"]') ^-- ^---- 
    • Thank you, did not notice something) - nathandrake
    • @Raccoon well, you can take the answer) - Alexey Shimansky