jquery - Detecting the clicked links after ajax load in Chrome using $("a:focus") -
i have page has list item, , each item has delete button. clicking delete button loads child page (delete.asp?id=123) in hidden div.
delete.asp has javascript alert (on document ready) fires when button clicked. has $("a:focus").hide(); removes clicked link. can't seem work in chrome. alert fires link doesn't remove itself.
besides using a:focus, there better way this?
rather removing link loaded page, should removing in same event loads hidden page. this:
$('a.delete').click(function() { //load delete.asp $('#myhiddendiv').load('delete.asp?id=123'); //hide link $(this).hide(); });
Comments
Post a Comment