get element from function in Jquery Method
<p>I made a jquery function that needs to run a user function onclick of the element. The problem is that i need access to the element I am calling the function on. How would i go about accomplishing this. An example of the function is </p>

<pre><code>                $("#domelement").yesNoDialog({
                 title:"Ineligible to Register",
                 message:"Stackoverflowtest",
                 yesFunction:function(){        
                     location.href = "www.stackoverflow.com"

                     //How do i grab an attribute from #domelement in here? ie $("domeElement").attr("stuff");

                 }
             });
</code></pre>

<p>The simplified version of the Jquery Method is as follows</p>

<pre><code>(function($) {       
  $.fn.yesNoDialog = function(options) {     
    options = $.extend({}, $.fn.yesNoDialog.defaultOptions, options);      
    this.each(function() {
      $(this).click(function(){
          options.yesFunction();
       });
    });     
    return this;
  };
})(jQuery);
</code></pre>
