Reliable 1 Junior Poster

Good Day,

Is anyone familiar with Lightforms AJAX contact forms. I'm using one in a web page i am building. I also wanted to include watermark text with "onblur" and "onfocus" functionality in some of the text input fields, but I can't seem to mesh the two. Here is an example:

<input id="name" name="name" type="text" class="validate['required','length[3,-1]','nodigit']" size="20" value="Mr., Ms., Pastor..."onfocus="document.getElementById('name').value=''"; onBlur="if (document.getElementById('name').value=='') {document.getElementById('name').value='Mr., Pastor, Prophet...'};"/>

I'm looking through the external formcheck.js sheet (one of the external sheets) but can't seem to see what I made need to alter. It's also a rather daunting task since I'm not all that adept in JS. Any suggestions?

Thanks for your time

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.