EasyUI
Home
Demo
Tutorial
Documentation
Download
Extension
Contact
Forum
EasyUI Forum
September 13, 2025, 04:41:05 PM
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Home
Help
Search
Login
Register
EasyUI Forum
>
General Category
>
EasyUI for jQuery
>
disable submit the form on enter key for teasyui-textbox
Pages: [
1
]
« previous
next »
Print
Author
Topic: disable submit the form on enter key for teasyui-textbox (Read 8086 times)
gongjw123
Newbie
Posts: 7
disable submit the form on enter key for teasyui-textbox
«
on:
October 12, 2014, 06:47:12 PM »
when there is "
type='submit'
" in form , how to disable submitting the form on enter keypress for easyui-textbox.
«
Last Edit: October 12, 2014, 06:50:36 PM by gongjw123
»
Logged
stworthy
Administrator
Hero Member
Posts: 3581
Re: disable submit the form on enter key for teasyui-textbox
«
Reply #1 on:
October 13, 2014, 12:00:46 AM »
Returning false in the bound 'submit' event will disable the form submitting.
Code:
$("#ff").submit(function(e){
return false;
});
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General Category
-----------------------------
=> News
=> General Discussion
=> EasyUI for jQuery
=> EasyUI for Angular
=> EasyUI for Vue
=> EasyUI for React
=> Bug Report
Loading...