Hi all and thanks in advance for your help, I am creating a plugin (named - autoFormat) using the classic plugin style (see below). Can I call the sub function stripFormat from another script? If not how can I modify the plugin that will allow me to call this from another script?
Bob (function($){ var p = $.extend({ aNum: '0123456789', cPos: 0 }); $.fn.extend({ autoFormat : function() { // plugin name return this.each(function() { $(this).keypress(function (e){ //code goes here }); function stripFormat(ie){ // sub function //code goes here } }); } }); })(jQuery);