Hello.
I'm new to JavaScript to any help in understanding would be great. For an html form, i'm am trying to have it so when a user clicks on the 'email' input box then a div element next to it displays "please make sure it's correct", and when they click out of the box (ie, to the next field), the message disappears again.
I have managed to make it appear using this;
Code:
function displaymessage()
{
document.getElementById("message").innerHTML="please make sure your email address isn't fake.. you dick";
}
<input class="textbox" name="email" onclick="displaymessage()"<input type='<p id="message"></p>
BUT, how do i make it disappear when the user clicks out.. is it onchange()?.. if so, how.
many thanks!!