Nicht erfasster TypeError: Objektfunktion (arg1, arg2) hat keine Methode 'apply'
Ich wollte ein Klick-Ereignis von einem Element in ein anderes kopieren, was ich auf folgende Weise tue, was nicht funktioniert
var arr = $("#engagement_box_content_generic_mention>.data_box>.load_mentions_data_box");
$.each ( arr , function( key , value){
console.log( $(this).attr("onclick") );
if ( key == 0 ) {
$("#abc").click( $(this).attr('onclick') );
}
});
console.log gibt mir so print_1317 (1317, 201205, 24, 11, 'no');
aber wenn ich auf angewendetes Element abc klicke, gibt es Störung
Uncaught TypeError: Object print_1317(1317, 201205, 24, 11, 'no'); has no method 'apply'
Danke im Voraus