You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
default
myStatefunction as well.alertpart is withinfunction confirmReview(formObj)(good, I guess), butfunction myStateis also defined withinfunction confirmReview(formObj), hence will no longer be found byonchange="myState(this.value);"Also note thatconfirmReviewshould returntrueorfalse. See Show me a Simple javascript onSubmit handler. PLEASE NOTE: by changing your question, you've also made imulsion's answer outdated. That's not nice. Note we're not a forum; please read About and FAQ.