>> $(document).ready(function() {
>> $("a").click(function(event) {
>> alert( "You clicked a link to " + this.href );
>> return false;
>> });
>> });
This method is very slow.
Try using event delegation:
$(document).ready(function() {
$(document).click(function(event){
if ($(event.target).is('a') {
alert( "You clicked a link to " + event.target.href);
return false;
}
});
});
--
Andrei Eftimie
http://eftimie.com
+40 758 833 281
Punct
http://designpunct.ro

