label inside input using jquery <p>my "label" is inside the input, so i want to empty the field when the user click and if its empty the "label" is back again </p> <pre><code> $('#name').focus(function() { if ($(this).val()=="Your name") { $(this).val(""); } }).blur(function() { if ($(this).val()=="") { $(this).val("Your name") } }); </code></pre> <p>and this would be done to 3 or more fields, there's any better aprouch? without using plugins, just jquery</p>