Tuesday, July 10, 2012

Adjust width of input textbox


HTML




JavaScript


if(date.value.length <='20'){ / date.style.width = (date.value.length * 7.2) + "px"; return false; } if(date.value.length >='20'){ date.style.width = (date.value.length * 7.0) + "px"; return false; } return true;

No comments:

Post a Comment