绑定keyCode==13,按下回车键的键值,的事件

	$("#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
	})

 

你可能感兴趣的:(keycode)