SyntaxFix
Write A Post
Hire A Developer
Questions
It reappears because your submit button reloads the page. The simplest way to prevent this behavior is to add a return false to the onclick like so:
return false
onclick
<input type="submit" value="Remove DUMMY" onclick="removeDummy(); return false;" />