html5 supports the placeholder attribute on input[type=text] elements, but I need to handle non-compliant browsers. I know there are a thousand plugins out ther
input[type=text]
You can also do this by passing function with onclick event