title: how to use trigger in Jquery to pass parameter data as well as control (this)
body: <p>I am trying to use same validation function for all my controls. But I don't know much in jQuery and not been able to pass event handler to the trigger. I want to pass textbox id to my custom function. 
  How can I do this</p>
  
  <pre><code>&lt;script src="http://code.jquery.com/jquery-latest.js"&gt;&lt;/script&gt;
  &lt;script type="text/javascript"&gt;
      $(document).ready(function(){
      $("#txtFirstName").bind('focusout', function()
     {
     $(this).trigger("customblurfocus",[$(this).val(), $(this).val() + " Required !", "Ok !"]);
     }
    );
  
    $(this).bind('customblurfocus',function(defaultInputValue,ErrorMessage,ValidMessage)
       {alert($(this).val()); 
       if($(this).val()=="" || $(this).val()==defaultInputValue)
        {
        $(this).val(defaultInputValue);
        $(this).siblings("span[id*='error']").toggleClass("error_set").text(ErrorMessage).fadeOut(3000);  
        }
       else
        {
        $(this).siblings("span[id*='error']").toggleClass("error_ok").text(ValidMessage).show(1000);
        }
       }
     );
      });
  &lt;/script&gt;
  </code></pre>