I was looking for a way to do this, got a few scripts, but none of them is working for me.
When I hit enter in my textboxes, it shouldn\'t do anything.
I hav
I don't understand why everybody here is suggesting to use jquery. There is a very simple method for it for a specific input element field. You can use its onKeyDown attribute and use e.preventDefault() method in it. Like this:
e.preventDefault()}/>
Note: This is React JSX way of using this attribute you can use HTML basic way.