[jQuery] Way to use a Multi-Line Example Prompt in a Single-line Text Input Field
I'm trying to prompt for input within the field using the Example
plugin (http://plugins.jquery.com/project/example). The idea is that
I'm styling my input field to be unsually large when the user types
(it will be no more than a 4 or 5 digits), so I can use closer to
normal size text as the prompt.
I know I can do this with a textarea, but it's semantically incorrect,
and using the return key creates a new line. I don't want to shoehorn
the simple input into a textarea, but I want the prompt to be
meaningful, like "Enter a measurement for this baseline," instead of
"type here" or whatever short message I could use. I also like the
amount of space that it takes up visually with two lines.
What is a better way of doing this? Should I just use a jEditable
element and style it to look like a form input?
-Wayne