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

Javascript find highest and lowest from the given inputs

function highAndLow(numbers){ // numbers = "4 5 29 54 4 0 -214 542 -64 1 -3 6 -6"   let numbersInArr = numbers.split(' '...