ted_chou12 Posted April 4, 2007 Share Posted April 4, 2007 enter does work and automatically submits when the input button type is submit, however, it doesnt with type=button, I wish to know how to make enter works for buttons as well. Thanks Ted Link to comment https://forums.phpfreaks.com/topic/45526-i-wish-to-know-how-to-submit-by-pressing-enter-with-button/ Share on other sites More sharing options...
sycosyco123 Posted April 6, 2007 Share Posted April 6, 2007 This ought to do it <input type="button" name="button_name" value='Submit' onClick='form_name.button_name.value="Please Wait...";return true'> Link to comment https://forums.phpfreaks.com/topic/45526-i-wish-to-know-how-to-submit-by-pressing-enter-with-button/#findComment-222972 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.