This is a simple question that I know, I looked at Google, but can not find much help. I am trying to create an object with my own parameters, and then call one of them in the message.
No matter what I try, it does not seem to work, I know that this is a fairly simple material, and I attribute it! Because of this, all my other JSs were pretty simple and all built-in, now I'm moving on to more OOP JS.
$.fn.DataBar = function() { $.DataBar.defaultOptions = { class: 'DataBar', text: 'Enter Text Here' } this.greet = function() { alert(this.text); }; } var q = new $.DataBar(); q.greet();
javascript function jquery object
Tom gullen
source share