By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,968 Members | 1,691 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,968 IT Pros & Developers. It's quick & easy.

Removing error message from dialog

P: 1
Guys.
I have a jquery dialog box for forgot password which is opened on click of a link.
As i submit the form the message is printed saying "your password has successfully been changed" and the dialog is closed.
it is set by using
---------------------------------------
document.getElementById("<div id>").innerHTML =xmlhttp.responseText;
---------------------------------------
Now if i click that link againg,dialog appears but with the above info message(your password has successfully been changed).
Do anyone know how to clear this message and open again the dialog form for reset password
Aug 28 '13 #1
Share this Question
Share on Google+
2 Replies


gits
Expert Mod 5K+
P: 5,268
you simply need to reset that div's innerHTML to its previous or an empty value in the close-action of the dialog.
Aug 28 '13 #2

Exequiel
100+
P: 287
After you submit the form you need to reset the message printed on your div, , document.getElementById("<div id>").innerHTML ="";
Aug 30 '13 #3

Post your reply

Sign in to post your reply or Sign up for a free account.