JQuery -Klick -Funktion
$( "#target" ).click(function() {
alert( "Handler for .click() called." );
});
Confused Cobra
$( "#target" ).click(function() {
alert( "Handler for .click() called." );
});
$( "#other" ).click(function() {
$( "#target" ).click();
});
$('h1').click(function () {
$(this).css('color', 'blue')
});
$('#selector').on('click',function(){
//Your code here
});
$( "p" ).on( "click", function() {
alert( $( this ).text() );
});
$("p").click(function(){
alert("The paragraph was clicked.");
});