This almost works. However, when leaving the field \"defaulttext\" appears rather than the original text value. Not sure how to most efficiently echo the variable inside default
Use HTML5 attribute placeholder on each input tag, eg: