$("#comSelMonth").keydown(function (event){ if (event.keyCode == 13) { changeMonthHandler();//trigger correct event } }) //to prevent auto submit by element strutsForm of ubswidget. $("#WeeklyBookingForm").submit(function (event){ event.preventDefault();//for firefox and ie })