title: jquery key press event on textarea
body: <p>My html code for textarea is as below.</p>
  
  <pre><code> &lt;div class="controls"&gt;
                          &lt;asp:TextBox ID="txtContent" TextMode="multiline" Columns="75" Rows="5" runat="server"
                              ToolTip="Content" data-val-required="Content is required." Width="154px" data-val="true"
                              Style="width: 400px; height: 75px; resize: none;"&gt; &lt;/asp:TextBox&gt;
                          &lt;span class="field-validation-valid text-warning red" data-valmsg-for="txtContent"
                              data-valmsg-replace="true"&gt;&lt;/span&gt;
                      &lt;/div&gt;
  </code></pre>
  
  <p>I have a save button to save the details enetered in the above textarea. All these are given in a popup</p>
  
  <pre><code> &lt;button id="lnkSaveWSR" title="Save" class="btn btn-small btn-success"
  onclick="AddWSRActivity();"
                  runat="server"&gt;
                  &lt;i class="icon-ok"&gt;&lt;/i&gt;Save
              &lt;/button&gt;
  </code></pre>
  
  <p>I have written my jquery code as below.</p>
  
  <pre><code>$(document).keypress(function (e) {
              var code = (e.keyCode ? e.keyCode : e.which);
              if (code == 13) {
                  if (!$('#form1').valid()) {
                      return false;
                  }
                  WSR.content = $('#txtContent').val();
                  WSR.CategoryId = $('#ddlAddWSRCategory').val();
                  var WSRAddUrl = ISM_Web_Path + '/WSR/WSRHandler/SaveActivities/' + ISMAjaxHandlerName;
                  $.post(WSRAddUrl, { WSRInfo: $.toJSON(WSR) },
                                        function (data) {
                                            parent.ShowSuccessMessage(ISM_JS_Constants.Global.Data_Add_Suc_Msg);
                                            parent.$('#AddWSRModal').modal('hide');
                                            parent.RefreshWSRGrid();
                                        });
              }
          });
  </code></pre>
  
  <p>When I press enter key after entering text in textarea the event is not getting triggered. instead cursor is going to next line in the textarea.</p>
  
  <p>Please help me in fixing the issue. Thanks in advance.</p>