$.fn.selectMatch = function(x) { for (i=0; i<this[0].options.length; i++) { if (this[0].options[i].innerHTML == x) alert('found it'); } return this; };
in my script im calling $('#optionselect').selectMatch('test'); firebug blows up and tells me that selectMatch does not exist. I have other function in this plugin that work, but they extend only jQuery itself ( $.funcname ) not $.fn.name Any ideas? Thanks