Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('#id').find('select').live('keypress', function (event) {
- if (event.which === 13) {
- event.preventDefault();
- $(this).closest('.ui-dialog').find('.ui-button:first').click();
- }
- });
- $( "body" ).on( "keypress", "#id select", function(event) {
- ...
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement