Displaying 1 result from an estimated 1 matches for "decreasename".
2011 Mar 09
1
Javascript call from view.
...have two javascript functions as follows defined seperately in an
application.js file.
function showName(inputName,textName){
var fieldName = document.getElementById(inputName);
document.getElementById(textName).value += ''@'' + fieldName.value +
'':'';
}
function decreaseName(inputname){
var fieldName = document.getElementById(inputname);
var totalLength = fieldName.length + 2;
var diff = 400 - totalLength;
return diff;
}
When I click on the reply link,a popup appears which has a text-area
and a post button.Beneath the textarea,appears the number of
characters rem...