rizwansyed Posted December 12, 2018 Share Posted December 12, 2018 Hi I am using onsubmit button for user login onsubmit="return vald1();myFunctiona010(event)" It has two functions to be called. One is to prevent default (preventing from going to next page) and other one to get signout option. Problem is , i need to click 2 times to get signout button. Is it possible to do it in one click(prevent default and getting signout option). Link to comment Share on other sites More sharing options...
rizwansyed Posted December 14, 2018 Author Share Posted December 14, 2018 Hi How can i solve it? Please suggest Link to comment Share on other sites More sharing options...
Funce Posted December 17, 2018 Share Posted December 17, 2018 Have you seen preventDefault? In conjunction with this SO answer should be simple enough to work out. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now