maxclif
Aug 27th 2008, 8:55 pm
I use Fckeditor to enter text in one of my site forms. All I want is that the user should atleast enter 100 characters or else a popup should come up.
Can anyone help me with this :)
Supah Fly
Aug 29th 2008, 9:18 am
<form name="name-of-form" method="get" action="http://www.yourdomain.com" onsubmit="showpopup()">
<input type="text" name="textbox-name">
<input type="submit" value="Submit form">
</form>
function showpopup() {
if (name-of-form.textbox-name.value.length < 100) {
alert('You entered less then 100 characters!!!');
return('false');
}
else {
return('true');
}
}
maxclif
Nov 29th 2008, 3:52 pm
Its a late reply but thank you :)
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.