Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function(){
- var display = $('#textarea').val();
- $('#textarea').keypress(function(e){
- if(e.shiftKey === true){
- if(e.which == 13){
- }
- }else{
- if(e.which == 13){
- // submit to form using submit()
- $('span#display').html(display);
- return false;
- }
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement