If the a elements are generated by the carousel plugin, you need to use jQuery's "live" function: https://api.jquery.com/live/
$( "#flexgrid .columns div ul#rotator-slides.slides li:eq(1) a" ).live( "click", function(event) {
event.preventDefault();
alert('got it');
});
});
//edit: As of jQuery 1.7, the .live() method is deprecated. Use .on() to attach event handlers. Users of older versions of jQuery should use .delegate() in preference to .live(). So it should be:
$(function() {
$( "#flexgrid ul#rotator-slides li:eq(0)" ).on( "click", "a", function(event) {
event.preventDefault();
alert('got it');
});
});