125
rated 0 times
[
128]
[
3]
/ answers: 1 / hits: 20871
/ 12 Years ago, tue, january 22, 2013, 12:00:00
Can anyone please tell me what the problem is with this code:
function c(id)
{
var empty = document.getElementById(id);
if(empty.length<1)
{
window.alert (This field cant be left empty);
return true;
}
else
{
return false;
}
}
This is my html code:
<textarea rows=3 cols=80 id=ta1 onChange=c('ta1');></textarea>
More From » html