So I have this contact form and I want to put text inside each input, when the user clicks on it the text disappears so they can add stuff – when the user clicks on something else it reappears. I have done this with labels and negative margin along with position relative. I plan on adding an onclick function to each input.
My question is – is there a function that is like Offclick()? Or something similiar to mouseOver() and MouseOut()?
Text inputs have
onblurand select boxes haveonchangeevents that can be wired into.With jQuery, it is even easier: