Enter to submit

I have a search form that modifies a record.  I have the following code for the view that pops the field_chzn open to enter data without clicking on the page but I cannot get the submit to work. I either want the submit to be "clicked" when the field_x_chzn is not "select" or blank or be able to click the submit button after receiving the enter key but I can't seem to get it to work.  Anyone have any ideas?

$(document).on('knack-view-render.view_95', function (event, view) {
$('#view_95_field_127_chzn > div > ul').mouseup(function() {
if($('#view_95_field_127_chzn > a > span').html() != 'Select')
$('#view_95 > form > div > input[type="submit"]').submit();

Hi, Chris.

Please use this script instead of your code.

$('#view_95 > form > div > input[type="submit"]').click();


$('#view_95 > form').submit();