Link to home
Start Free TrialLog in
Avatar of Nitinol
Nitinol

asked on

How to use hidden buttons

I have an inputbox class and I want to be able to submit the information using the

myform.acceptbutton = myform.mybutton

Hitting the enter key automatically will submit the information, but it doesn't work when the button is hidden or not visible.  I was wondering if there was a way to use the button when it is hidden.  Thank you.
Avatar of burakiewicz
burakiewicz
Flag of United States of America image

Turn key preview on and You can check if the user hit the enter key and then call the buttonclick or method from there
like myform.mybutton.click();
Avatar of Nitinol
Nitinol

ASKER

hmm...I'll get back to you and see if it works, thanks.
Avatar of Nitinol

ASKER

nope, the events are not methods, so that won't work.  I might just work something out with the onkeypress event handler instead of using the button.  I need, however, to get a dialogue result.

further help would be much appreciated.
ASKER CERTIFIED SOLUTION
Avatar of Nitinol
Nitinol

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial