﻿(function($){
 $.fn.AddEnterKeyPress = function(options) {
    var defaults = {  
          SubmitElement:"" 
    };  
   
   var options = $.extend(defaults, options);  
   var $this = $(this);
   
   this.each(function() {
        
         jQuery($this).bind("keydown", function(e) {
           if (e.keyCode == 13)
           {
            var href = options.SubmitElement.attr("href");
            eval(href);
           }
         });
    });
  
  };
})(jQuery);

