disable enter key on specific textboxes
<p>I was surfing in this title got few scripts but it is not working.
When i hit enter on text boxes,it should n't work.
got few js and jquery scripts but nothing is working</p>

<pre><code>$(document).ready(function() {

$('#comment').keypress(function(event) {
if (event.keyCode == 13) {
event.preventDefault();
}
});

$('#comment').keyup(function() {
var txt = $('#comment').val();
$('#comment').val(txt.replace(/[\n\r]+/g, " "));

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