0

I have an app that has multipla page tabs. One of the tabs has a form that does a search. The issue I am running is that when I do a search on the form, and then go to a different tab, and then come back, it does the search again. How can I make it so that when I switch tabs and come back that the form is in its default state.

Thanks much for the help.

1
  • I've met a same situation what i did was i found the # of the tab and altered the form submit respectively . May be there is a better way.
    – niksmac
    Commented Nov 26, 2012 at 5:34

1 Answer 1

1

Include the following within the submit button tag:

onclick="return false"
3
  • This will not at all allow the form to submit. he is asking about preventing the submission on particular situation. Commented Nov 26, 2012 at 5:09
  • @Mathankumar OP not asking about preventing the submission on particular situation, read again.
    – niksmac
    Commented Nov 26, 2012 at 5:33
  • @Bobby, what will this onclick="return false" do ?
    – niksmac
    Commented Nov 26, 2012 at 5:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.