Adding the div element is easy, but it shows on the bottom of my form. I cant make it as the first child element of my form...
This is my code
var _form = document.getElementById('registration_form'); var errorDiv = document.createElement('div'); errorDiv.setAttribute('class', 'confBox'); errorDiv.innerHTML= "<strong>There is already an existing account for " + _form.email.value + ". Please login.</strong><br/>"; _form.appendChild(errorDiv); return false;
This post has been edited by Martyr2: 26 August 2010 - 07:49 PM
Reason for edit:: Please use code tags in the future, thanks!