• sateesh_sfdc@yahoo.com
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 0
    Replies

Here it is a sample code it work only text area data type pls send me solution very urgent

<apex:page >
<script type="text/javascript">
var maxLength=100;
function charLimit(el) {
if (el.value.length > maxLength) return false;
return true;
}
function characterCount(el) {
var charCount = document.getElementById('charCount');
if (el.value.length > maxLength) el.value = el.value.substring(0,maxLength);
if (charCount) charCount.innerHTML = maxLength - el.value.length;
return true;
}
</script>
<apex:form >
<apex:inputtextarea onKeyPress="return charLimit(this)" onKeyUp="return characterCount(this)" rows="8" cols="40" />
</apex:form>
<p><strong><span id="charCount">100</span></strong> more characters available.</p>
</apex:page>

why javascript is not working on rich text area i

Hi Frnds

I don't know how write a code on character count on rich text area any one pls tell me it is very urgert

 

Field: Email

Datatype:richt ext 

 

regards,

Sateesh.T

 

 

Displying how many characters remain while filling data into a text box field