Improve placeholder behavior for fields and values

Based on the last pull thread, added changes to mimic the html5 placeholder behavior more closely.