このロジックは、[金額]入力で[Enter]を押すと発動しますが、私はそれを信じません(Chromeにはありません)。これを防ぐにはどうすればよいですか?IEで防ぐことができない場合は、クリックイベントのロジックが起動しないように処理してください。
<html>
 <body>
   <div id="page">
     <div id="financed_amount">
      <h1>Financed Amount:</h1>
      <input type="text" id="amount" value="" />
     </div>
     <h1>Finance Options</h1>
     <div>
      <a id="shareLink" rel="leanModal" name="email" href="#email"></a>
      <button id="btnShare" class="share">Share this report</button>
     </div>
    </div>
   </body>
</html>脚本
$("#btnShare").click(function (e) {
    // This logic is firing when pressing "Enter" in the "Amount" input
});- jquery:1.7.2
- IE 9
- (Chromeで動作)