hyperlink - jQuery - how to select only links to new pages? -
i have code goes this, using jquery, fade out main div when user clicks link:
$('a').click( function () { $('#content').fadeout(); }); however, want apply links open new page in same window, i.e. not target="_blank" or opens lightbox or modal dialog or skips anchor within document, because not going helpful when window remains open without content.
so, how can replace 'a' selects right kind of links - links navigate current window away other content (could internal or external)?
many, many thanks. dave
you can assign class links , change event handler with:
$('.myclass').click( function () { $('#content').fadeout(); }); obviously, can apply if know links going away
Comments
Post a Comment