Yet another floating label pattern solution that makes label element floating on the top of its associated form control when focused.

floating-label2

floating-label1

Demo
Download

source