Cannot be done something with "each"?
Again, it does not work for me.

var menu = ['home','news','sport','music'];

$.each(menu, function(index) {

        $('#'+this+'_header').click(function(){
                alert(this+'_header clicked');

        });

});

Reply via email to