Der Code selbst:
Code:
(function( $ ) { $.fn.popupContent = function() { //Funtions-Block alert($( this ).text()); }; }( jQuery ));
Code:
$( "#textArea" ).popupContent();
Mit Parameter:
Der Code selbst:
Code:
(function( $ ) { $.fn.popupContent = function(additionalText) { //Funtions-Block alert(additionalText + " - " + $( this ).text()); }; }( jQuery ));
Code:
$( "#textArea" ).popupContent("Headline");